摘要: 1. 定义一个方法 -(void) update{ } 2. 对象注册,并关连消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update) name:@"update" object:nil] 阅读全文
posted @ 2016-08-19 13:56 李洪强 阅读(322) 评论(0) 推荐(0) 编辑
摘要: iOS开发基础知识--碎片7 三十八:各个版本IPHONE分辨率及图片的实现原理 desert@2x : iPhone 4s (320 x 420) desert-568h@2x : iPhones 5, 5C and 5S (320 x 568) desert-667h@2x : iPhone 6 阅读全文
posted @ 2016-08-19 09:21 李洪强 阅读(215) 评论(0) 推荐(0) 编辑
摘要: iOS开发基础知识--碎片6 三十三:IOS多视图跳转方法 第一种: 跳转:[self presentModalViewController:control animated:YES]; 返回:[self dismissModalViewControllerAnimated:YES]; 第二种: 跳 阅读全文
posted @ 2016-08-19 09:18 李洪强 阅读(245) 评论(0) 推荐(0) 编辑
摘要: iOS开发基础知识--碎片5 二十三:addSubview和insertSubview 区别 addSubview 是将view加到所有层的最顶层 相当于将insertSubview的atIndex参数设置成view.subviews count 即 [view addSubview:oneview 阅读全文
posted @ 2016-08-19 09:16 李洪强 阅读(213) 评论(0) 推荐(0) 编辑
摘要: iOS开发基础知识--碎片4 iOS开发基础知识--碎片4 十七:返回到主线程进行操作,对UI进行更新只能在主线程进行 十八:UIImageView用法总结 十九:通过tag获得子控件 二十:动态修改按键的背景图 二十一:判断是不是模拟机 二十二:16进制色彩转化成UIColor 阅读全文
posted @ 2016-08-19 09:14 李洪强 阅读(214) 评论(0) 推荐(0) 编辑