上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: NSFileCreationDate和NSFileModificationDate两个属性分别代表文件创建时间和修改时间 NSArray *sortedPaths = [array sortedArrayUsingComparator:^(NSString * firstPath, NSString 阅读全文
posted @ 2016-03-08 21:59 浪味小仙女 阅读(331) 评论(0) 推荐(0) 编辑
摘要: //查看是否授权了。 if ([PHPhotoLibrary authorizationStatus] != PHAuthorizationStatusAuthorized){ NSLog(@"没有授权"); } //PHAsset 可以表示一个图片的信息 相册信息 //PHFetchResult 阅读全文
posted @ 2016-03-03 18:11 浪味小仙女 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.从系统相册中读取 /* 判断选择的读取类型是否支持 UIImagePickerControllerSourceTypePhotoLibrary,普通相册 UIImagePickerControllerSourceTypeCamera, 镜头(拍照、录视频) UIImagePickerContro 阅读全文
posted @ 2016-03-02 11:05 浪味小仙女 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 常常会用到对plist文件的封装,毕竟初学者,多记有经验 +(NSArray *)LoadFriendsDataFromPlist:(NSString *)pliatName{ NSString * filePath = [[NSBundle mainBundle]pathForResource:p 阅读全文
posted @ 2016-03-01 20:15 浪味小仙女 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 因为总是忘记所以记一下 1.scrollToRowAtIndexPath QQ会话中总是希望添加一行就向上滚动总是显示最新的消息 NSIndexPath *lastIndexPath = [NSIndexPath indexPathForRow:_messageArray.count-1 inSec 阅读全文
posted @ 2016-03-01 20:13 浪味小仙女 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 在仿写QQ会话的时候背景蓝色图片是拉伸而来,但是有些地方是受保护的不能拉伸 所以定义了下面的工具类中的一个方法,专门拉伸图片 UIImageResizingModeStretch:拉伸模式,通过拉伸UIEdgeInsets指定的矩形区域来填充图片 UIImageResizingModeTile:平铺 阅读全文
posted @ 2016-03-01 20:03 浪味小仙女 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.简单设置带属性的字符串 定义一个NSMutableAttributedString带属性的字符串 NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"hello[1_1] wor 阅读全文
posted @ 2016-03-01 19:53 浪味小仙女 阅读(2739) 评论(0) 推荐(0) 编辑
摘要: 注册消息 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(方法) name:@"消息名字" object:nil]; 方法实现 -(void)方法:(NSNotification *)notficati 阅读全文
posted @ 2016-02-26 16:10 浪味小仙女 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 创建显示的页面 SearchViewController * searchVC = [[SearchViewController alloc]init]; 告诉搜索控制器将结果显示在创建的页面上 self.searchController = [[UISearchController alloc]i 阅读全文
posted @ 2016-02-23 11:27 浪味小仙女 阅读(182) 评论(0) 推荐(0) 编辑
摘要: UITableView - (void)viewDidLoad { [super viewDidLoad]; self.myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 320, 568) style:UITableVi 阅读全文
posted @ 2016-02-22 16:37 浪味小仙女 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页