Git Product home page Git Product logo

fanfouexpress's People

Contributors

zchan0 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pyzh

fanfouexpress's Issues

Transition animation

这个pr里添加了自定义的transition动画,包括present和dismiss。想要实现的效果类似于Apple music 和 Overcast 的播放界面。

现在dismiss的动画是直接对toVC.view.frame做动画,有个小问题是layout subviews的动画也会出来。但如果用toVC.view.snapshot.frame的话,会因为放大让文字变形。

应该是动画的实现方式有问题,应该想想看别的动画。

About DetailsViewController

这个PR #6 里,返回 DetailContentCell 的高度用的是直接根据String来计算,但是在 DetailContentCell 应该是返回 TextView 的高度,这两个高度并不一样。这个PR强行用TextView的Text长度来计算,虽然高度一致了,但是TextView显示的时候又会出现问题 = =

现在有两个想法:

  1. 换用AutoLayout来写,正好这个issue里提到了想试试 Self-sizing table view cells,而且还想试试 UIStackView。
  2. 详情页的UI写出来没有在Sketch上看着好看啊,想干脆换个UI的设计= =

不过这两天算得有点恶心,先把这个放一放吧,写写别的换个口味 😈

P.S:

Self-sizing table view cells

目前TableViewCell的自适应内容高度是手动计算的。iOS 8.0 以后Apple给TableView加了self-sizing cells。据说只要设定好了TableViewCell的AutoLayout约束,只需要两行代码就可以搞定👇

self.tableView.rowHeight = UITableViewAutomaticDimension;
self.tableView.estimatedRowHeight = 44.0; // set to whatever your "average" cell height is

回头试试 😺

Auto layout guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.