会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sunny
海纳百川
博客园
首页
新随笔
联系
管理
订阅
[置顶]
ios中ui九宫格作图
摘要: 九宫格作图// 添加应用信息 // 1,总列数(一行最多三列) int totalColumns =3; // 2,应用尺寸 CGFloat appW =85; CGFloat appH =90; // 3,间隙=(控制器view的宽度 -3*应用宽度)/4 CGFloat marginX =...
阅读全文
posted @ 2016-01-15 09:52 codingsunny
阅读(248)
评论(0)
推荐(0)
2016年1月21日
ios中label富文本的设置
摘要: 1.修改不同文字和颜色 // 创建一个富文本 NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:@"哈哈哈哈哈123456789"]; // 修改富文...
阅读全文
posted @ 2016-01-21 20:07 codingsunny
阅读(3197)
评论(0)
推荐(0)
2016年1月15日
oc中时间(NSDate)的处理
摘要: //获取当前时间 NSDate * nowDate = [NSDate date]; NSLog(@"date=%@",nowDate); //获取距离当前时间n秒以后的时间 NSDate *d2 = [NSDate dateWithTimeIntervalSinceNow:...
阅读全文
posted @ 2016-01-15 09:59 codingsunny
阅读(868)
评论(0)
推荐(0)
oc中字典的处理
摘要: //1简单初始化 NSDictionary *dict=@{@"name":@"小明",@"qge":@"18"}; NSLog(@"%@",dict);//2 initWithDictionary 用一个字典初始化另一个字典 NSDictionary *dict1=[[NSDic...
阅读全文
posted @ 2016-01-15 09:57 codingsunny
阅读(231)
评论(0)
推荐(0)
oc中文件管理汇总
摘要: 1,初始化一个NSFileManager 执行文件或文件夹的创建、删除、复制、移动 NSFileManager *manager = [NSFileManager defaultManager] 1.1创建文件夹 createDirectoryAtPath NSError *error =...
阅读全文
posted @ 2016-01-15 09:57 codingsunny
阅读(590)
评论(0)
推荐(0)
oc中数组的处理
摘要: 1.initWithObjects 传入对象初始化NSArray *arr3 =[[NSArray alloc]initWithObjects:@"4",@"5",@"6", nil] ; NSLog(@"%@",arr3);2.initWithArray:用一个数组初始化新的数组 NSArra...
阅读全文
posted @ 2016-01-15 09:56 codingsunny
阅读(3371)
评论(0)
推荐(0)
oc语言中关于字符串的处理
摘要: 1.普通初始化字符串// 定义并初始化一个字符串 NSString *str=@"Hello World";2.求字符串长度//求字符串长度 NSLog(@"%lu",str.length);3.根据索引查找字符//根据索引查找字符,(unichar) unichar uni_char = [...
阅读全文
posted @ 2016-01-15 09:55 codingsunny
阅读(266)
评论(0)
推荐(0)
公告