摘要: 字典创建: NSDictionary *dict=[NSDictionary dictionaryWithObject:@“value1”,@“key1”];//一组键值对 NSDictionary *dict=[NADictionary dictionaryWithObjectAndKeys:@“ 阅读全文
posted @ 2016-11-27 17:28 瓜皮程序员 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/u013378438/article/details/44200917 阅读全文
posted @ 2016-11-27 17:20 瓜皮程序员 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 方法只执行一次: static dispatch_once_t onceToken; dispatcher_once(&onceToken,^{ ... }); 在viewDidLoad加载之前加载: -(void)viewWillAppear:(BOOL)animated{ [super view 阅读全文
posted @ 2016-11-26 20:54 瓜皮程序员 阅读(120) 评论(0) 推荐(0) 编辑
摘要: ![image](Images/Snip20151105_8.png) - 解决方案 ```objc #ifndef PrefixHeader_pch #define PrefixHeader_pch /*** 如果希望某些内容能拷贝到任何源代码文件(OC\C\C++等), 那么就不要写在#ifde 阅读全文
posted @ 2016-11-25 20:48 瓜皮程序员 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 创建窗口 self.window=[[UIWindow alloc]init]; self.window.frame=[UIScreen MainScreen].bounds; self.window.rootViewController=tabBarVc;//设置根控制器 [self.window 阅读全文
posted @ 2016-11-25 20:47 瓜皮程序员 阅读(148) 评论(0) 推荐(0) 编辑
摘要: - 颜色的基本组成 - 一种颜色由N个颜色通道组成 - 颜色通道 - 1个颜色通道占据8bit - 1个颜色通道的取值范围 - 10进制 : [0, 255] - 16进制 : [00, ff]; - 常见的颜色通道 - 红色 red R - 绿色 green G - 蓝色 blue B - 透明度 阅读全文
posted @ 2016-11-25 20:46 瓜皮程序员 阅读(317) 评论(0) 推荐(0) 编辑