zchan0 / fanfouexpress Goto Github PK
View Code? Open in Web Editor NEW饭否精选客户端
饭否精选客户端
这个pr里添加了自定义的transition动画,包括present和dismiss。想要实现的效果类似于Apple music 和 Overcast 的播放界面。
现在dismiss的动画是直接对toVC.view.frame
做动画,有个小问题是layout subviews的动画也会出来。但如果用toVC.view.snapshot.frame
的话,会因为放大让文字变形。
应该是动画的实现方式有问题,应该想想看别的动画。
这个PR #6 里,返回 DetailContentCell 的高度用的是直接根据String来计算,但是在 DetailContentCell 应该是返回 TextView 的高度,这两个高度并不一样。这个PR强行用TextView的Text长度来计算,虽然高度一致了,但是TextView显示的时候又会出现问题 = =
现在有两个想法:
不过这两天算得有点恶心,先把这个放一放吧,写写别的换个口味 😈
P.S:
目前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
回头试试 😺
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.