05 2015 档案
摘要:1. 什么是LLDB?LLDB,底层调试器,在xcode的Debug区域,能看到蓝色的小字 (lldb)2. 什么dsYM文件? dsYM是调试信息文件,因为后缀名.dsYM,所以叫sdYM文件,创建新工程时,默认就会创建dsYM文件,Build Setting里有相应的设置3. 什么是符号化? ...
阅读全文
摘要:1. 框架的可用性检查 弱链接某框架(方法:targets--Bulid Phases--Link Binary With Libraries,在需要使用弱链接的框架上,把默认的Required,改成Optional)2. 类的可用性检查 id myObj = [[NSClassFromString...
阅读全文
摘要:1. 在需要用到网络图片的.m文件中 NSURL *url = [NSURL URLWithString:imageUrlString]; UIImage *placeholder = [UIImage imageNamed:@"placeholder"]; // 前者:下载失败重试,后者:低优...
阅读全文
摘要:1 #import 2 #import 3 4 @interface BoxViewController : UIViewController 5 @property (nonatomic, readwrite, strong) CALayer *topLayer; 6 @property ...
阅读全文
摘要:1. stroyBoard右下角4个按钮的用途 从左到右,第1个按钮,是添加对齐约束的; 第2个按钮,是添加标准约束的; 第3个按钮,可以让Xcode自动生成约束或者更新视图到正确位置; 第4个按钮,可以设置让哪些类继承这些约束,默认情况下,2个选项都是选中的,建议把Silbings和Anc...
阅读全文
摘要:示例代码- (void)viewDidLoad { [super viewDidLoad]; [self creatLayer]; [self creatText]; [NSTimer scheduledTimerWithTimeInterval:1.0 target:self select...
阅读全文
摘要:CAGradientLayer,CALayer的子集,可以用来做渐变色极客快讯的APP就采用这种方式封装imageView,左图“长按或扫描...”这行字下面的矩形区域用到了渐变色,右图是它的首页,每张图都有渐变色处理示例代码- (void)viewDidLoad { [super viewDid...
阅读全文

浙公网安备 33010602011771号