摘要: [BS] 小知识点总结-05 1. 不论UIWindow的rootViewController是navC、tabBarC还是VC,也不管modalVC和rootVC中间隔着多少个VC,但是modal出来的视图,其UI结构一定是这样: 先是UIWindow,然后是跳转用的完全透明的UITransiti 阅读全文
posted @ 2016-04-28 18:27 stevenwuzheng 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1. ios新知识学习思路: 在开发过程中如果遇到某种新需求以前从未做过,例如改变textField的Placeholder颜色,有如下思路和途径: 1.1 在Storyboard/Xib辅助编辑器Attributes inspector查找是否有相关设置。 1.2 查看UITextField.h头 阅读全文
posted @ 2016-04-28 18:26 stevenwuzheng 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1. dispatch_GCD 可让某操作延迟x秒执行 //模拟网速慢,延迟3s返回数据(就会导致右侧数据和左侧标签不对应) dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatc 阅读全文
posted @ 2016-04-28 18:25 stevenwuzheng 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1.Autolayout中“constrain to margins” Autolayout中的页面边距的问题ios8以后的UIView增加了layoutMargins属性,在Storyboard/IB中使用AutoLayout布局时,一般都取消勾选“constrain to margins”,如果 阅读全文
posted @ 2016-04-28 18:25 stevenwuzheng 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1. UIImageView *imgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]]; //initWithImage方法的好处是创建的imageView和图片的尺寸一样 2. //看UI层级,t 阅读全文
posted @ 2016-04-28 18:24 stevenwuzheng 阅读(215) 评论(0) 推荐(0) 编辑
摘要: JSON的基础知识--百科 http://baike.baidu.com/view/136475.htm 阅读全文
posted @ 2016-04-28 09:43 stevenwuzheng 阅读(127) 评论(0) 推荐(0) 编辑