会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪味小仙女
来日方长,厚积薄发。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
15
下一页
2016年3月8日
文件按修改时间和创建时间遍历
摘要: NSFileCreationDate和NSFileModificationDate两个属性分别代表文件创建时间和修改时间 NSArray *sortedPaths = [array sortedArrayUsingComparator:^(NSString * firstPath, NSString
阅读全文
posted @ 2016-03-08 21:59 浪味小仙女
阅读(342)
评论(0)
推荐(0)
2016年3月3日
自定义实现从系统相册中取照片
摘要: //查看是否授权了。 if ([PHPhotoLibrary authorizationStatus] != PHAuthorizationStatusAuthorized){ NSLog(@"没有授权"); } //PHAsset 可以表示一个图片的信息 相册信息 //PHFetchResult
阅读全文
posted @ 2016-03-03 18:11 浪味小仙女
阅读(232)
评论(0)
推荐(0)
2016年3月2日
系统简单的UIImagePickerController
摘要: 1.从系统相册中读取 /* 判断选择的读取类型是否支持 UIImagePickerControllerSourceTypePhotoLibrary,普通相册 UIImagePickerControllerSourceTypeCamera, 镜头(拍照、录视频) UIImagePickerContro
阅读全文
posted @ 2016-03-02 11:05 浪味小仙女
阅读(165)
评论(0)
推荐(0)
2016年3月1日
对plist文件的简单封装
摘要: 常常会用到对plist文件的封装,毕竟初学者,多记有经验 +(NSArray *)LoadFriendsDataFromPlist:(NSString *)pliatName{ NSString * filePath = [[NSBundle mainBundle]pathForResource:p
阅读全文
posted @ 2016-03-01 20:15 浪味小仙女
阅读(171)
评论(0)
推荐(0)
UITableView总忘记的
摘要: 因为总是忘记所以记一下 1.scrollToRowAtIndexPath QQ会话中总是希望添加一行就向上滚动总是显示最新的消息 NSIndexPath *lastIndexPath = [NSIndexPath indexPathForRow:_messageArray.count-1 inSec
阅读全文
posted @ 2016-03-01 20:13 浪味小仙女
阅读(116)
评论(0)
推荐(0)
使用图片拉伸resizableImageWithCapInsets
摘要: 在仿写QQ会话的时候背景蓝色图片是拉伸而来,但是有些地方是受保护的不能拉伸 所以定义了下面的工具类中的一个方法,专门拉伸图片 UIImageResizingModeStretch:拉伸模式,通过拉伸UIEdgeInsets指定的矩形区域来填充图片 UIImageResizingModeTile:平铺
阅读全文
posted @ 2016-03-01 20:03 浪味小仙女
阅读(264)
评论(0)
推荐(0)
图文混排——用表情代替 “[文字]”显示
摘要: 1.简单设置带属性的字符串 定义一个NSMutableAttributedString带属性的字符串 NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"hello[1_1] wor
阅读全文
posted @ 2016-03-01 19:53 浪味小仙女
阅读(2767)
评论(0)
推荐(0)
2016年2月26日
NSNotification消息
摘要: 注册消息 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(方法) name:@"消息名字" object:nil]; 方法实现 -(void)方法:(NSNotification *)notficati
阅读全文
posted @ 2016-02-26 16:10 浪味小仙女
阅读(154)
评论(0)
推荐(0)
2016年2月23日
UISearchController
摘要: 创建显示的页面 SearchViewController * searchVC = [[SearchViewController alloc]init]; 告诉搜索控制器将结果显示在创建的页面上 self.searchController = [[UISearchController alloc]i
阅读全文
posted @ 2016-02-23 11:27 浪味小仙女
阅读(186)
评论(0)
推荐(0)
2016年2月22日
UITableView
摘要: UITableView - (void)viewDidLoad { [super viewDidLoad]; self.myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 320, 568) style:UITableVi
阅读全文
posted @ 2016-02-22 16:37 浪味小仙女
阅读(165)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
15
下一页
公告