04 2015 档案

摘要:CAGradientLayer *lay = [CAGradientLayer layer]; [lay setFrame:self.view.bounds]; lay.colors = @[[UIColor redColor],[UIColor blueColor]]; ... 阅读全文
posted @ 2015-04-29 10:56 沙影无痕 阅读(224) 评论(0) 推荐(0)
摘要:ifdefine等判断后面加了import头文件的语法iOS8是不允许的,因此要把这部分移到最顶上 阅读全文
posted @ 2015-04-27 11:42 沙影无痕 阅读(226) 评论(0) 推荐(0)
摘要:打开模拟器上app的文件位置方法,可以借助该工具,轻易的打开app沙盒文件夹SimPholders2 阅读全文
posted @ 2015-04-25 09:12 沙影无痕 阅读(538) 评论(0) 推荐(0)
摘要:让UIView、UIWindow等透明遮挡不影响下面视图操作方法- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ UIView *hitView = [super hitTest:point withEvent:eve... 阅读全文
posted @ 2015-04-17 10:02 沙影无痕 阅读(285) 评论(0) 推荐(0)
摘要:(1)针对NSString、NSNumber等非容器类型对象的拷贝 copy、mutableCopy对于系统的非容器类对象a、如果对一不可变对象复制,copy是指针复制(浅拷贝)和mutableCopy对象复制(深拷贝)eg: NSString *aString = @"MySting";NSStr... 阅读全文
posted @ 2015-04-17 09:37 沙影无痕 阅读(217) 评论(0) 推荐(0)