ios7 新特性


动态计算UITableViewCell高度

http://www.shinobicontrols.com/blog/posts/2013/10/16/ios7-day-by-day-day-19-uitableview-row-height-estimation

http://www.ifun.cc/blog/2014/02/21/dong-tai-ji-suan-uitableviewcellgao-du-xiang-jie/

其中一些新的方法
[cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];
– (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath

iOS7的几个特点:
1.坐标:以屏幕左上角为原点(iOS7以前在状态栏或者导航条下)

2.UIScrollView及其子类: 会自动在顶部和底部预留一些空白,因为滚动经过半透明导航条或者tabbar下面,需要能隐约看到的效果。是否预留空白可以由UIViewController的automaticallyAdjustsScrollViewInsets的这个属性控制,automaticallyAdjustsScrollViewInsets的意思是自动调整滚动视图的内边距。它默认YES,表示预留空白。(所以tableview . headerView 设置完会留空白
一个控制器中的UIScrollView(包括其子类),必须是第一个添加到控制器的视图,才会被控制是否预留空白。

Specifies whether or not the view controller should automatically adjust its scroll view insets.
Default value is YES, which allows the view controller to adjust its scroll view insets in response to the screen areas consumed by the status bar, navigation bar, and toolbar or tab bar. Set to NO if you want to manage scroll view inset adjustments yourself, such as when there is more than one scroll view in the view hierarchy.

http://blog.csdn.net/shenjx1225/article/details/12100079

3.其它布局

http://www.vinqon.com/codeblog/?detail/11109

4.引入了JS框架<JavaScriptCore/JavaScriptCore.h>,给了“纯IOS程序员”一个枯木逢春的契机~学习强大的 JavaScript。

http://blog.csdn.net/lizhongfu2013/article/details/9232129

5.导航拖动返回
改进参考

http://www.cnblogs.com/lexingyu/p/3432444.html

http://blog.csdn.net/zhaoxy_thu/article/details/15811189

//控制导航返回图片与文字颜色
self.navigationController.navigationBar.tintColor=[UIColor whiteColor];

iOS7人机界面指南-UI元素(上)

http://isux.tencent.com/ios-human-interface-guidelines-ui-design-ios7-ui-1.html

6.iOS 7:隐藏的特性和解决之道

http://www.cocoachina.com/industry/20131122/7400.html

http://www.objc.io/issue-5/iOS7-hidden-gems-and-workarounds.html

http://nshipster.com/ios7/

http://www.cocoachina.com/industry/20140117/7715.html

http://www.tuicool.com/articles/riMzAr

归类: IOS ,标签:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值