上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: CAGradientLayer *lay = [CAGradientLayer layer]; [lay setFrame:self.view.bounds]; lay.colors = @[[UIColor redColor],[UIColor blueColor]]; ... 阅读全文
posted @ 2015-04-29 10:56 沙影无痕 阅读(219) 评论(0) 推荐(0) 编辑
摘要: ifdefine等判断后面加了import头文件的语法iOS8是不允许的,因此要把这部分移到最顶上 阅读全文
posted @ 2015-04-27 11:42 沙影无痕 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 打开模拟器上app的文件位置方法,可以借助该工具,轻易的打开app沙盒文件夹SimPholders2 阅读全文
posted @ 2015-04-25 09:12 沙影无痕 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 让UIView、UIWindow等透明遮挡不影响下面视图操作方法- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ UIView *hitView = [super hitTest:point withEvent:eve... 阅读全文
posted @ 2015-04-17 10:02 沙影无痕 阅读(275) 评论(0) 推荐(0) 编辑
摘要: (1)针对NSString、NSNumber等非容器类型对象的拷贝 copy、mutableCopy对于系统的非容器类对象a、如果对一不可变对象复制,copy是指针复制(浅拷贝)和mutableCopy对象复制(深拷贝)eg: NSString *aString = @"MySting";NSStr... 阅读全文
posted @ 2015-04-17 09:37 沙影无痕 阅读(213) 评论(0) 推荐(0) 编辑
摘要: NSData * archiveData = [NSKeyedArchiver archivedDataWithRootObject:stateLabel]; UILabel* aLabel = [NSKeyedUnarchiver unarchiveO... 阅读全文
posted @ 2015-03-20 10:08 沙影无痕 阅读(259) 评论(0) 推荐(0) 编辑
摘要: CCTransition* transition =[CCTransition transitionFadeWithDuration:1.5]; [[CCDirector sharedDirector] replaceScene:[CCBReader loadAsScene:@"Mai... 阅读全文
posted @ 2015-03-08 22:09 沙影无痕 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 让 UISearchBar 支持空搜索,当没有输入的时候,search 按钮一样可以点击- (void)searchBarTextDidBeginEditing:(UISearchBar *) searchBar{ UITextField *searchBarTextField = nil; ... 阅读全文
posted @ 2015-02-11 13:47 沙影无痕 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 如果确定键盘所在的window 那么只需要采用 window的 结束编辑方法,例如: [[UIApplication sharedApplication].keyWindow endEditing:YES];如果是自己定义的UIWindow,那么直接使用: [myWindow endEditing... 阅读全文
posted @ 2015-02-03 09:27 沙影无痕 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 先下载MBProgressHUD.h和.m文件,拖入工程。地址:MBProgressHUD以下是代码:(先在.h文件里定义 MBProgressHUD *HUD;)[cpp]view plaincopy//方式1.直接在View上showHUD=[[MBProgressHUDshowHUDAdded... 阅读全文
posted @ 2015-01-30 16:23 沙影无痕 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页