会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shao621
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2015年6月22日
定义一个计算字符串高度的方法
摘要: //计算字符串高度的方法-(CGFloat)stringHeight:(NSString *)str{ //设置字符串的属性 NSDictionary *dic=@{NSFontAttributeName:[UIFont systemFontOfSize:17]}; //计算字符串的区域 CGRec...
阅读全文
posted @ 2015-06-22 17:01 shao621
阅读(235)
评论(0)
推荐(0)
2015年6月20日
字典转模型
摘要: 1创建关于人信息的数据源person.plist2 创建一个person类3 控制器中创建一个person数组,接收数据存放person-(NSArray *)person{ if(_person==nil){ //1获取plist的全路径 NSString *filepath=[[NSBundle...
阅读全文
posted @ 2015-06-20 17:45 shao621
阅读(122)
评论(0)
推荐(0)
2015年6月16日
UIScrollView和UIPageControl
摘要: UIScrollView和UIPageControl 一般配合使用//创建一个滑动/滚动的视图,大小和当前视图大小一样(可以自定义大小) UIScrollView *scrollView=[[UIScrollView alloc] initWithFrame:self.view.bounds]; /...
阅读全文
posted @ 2015-06-16 21:23 shao621
阅读(197)
评论(0)
推荐(0)
2015年6月6日
oc 2 NSArray小结
摘要: //1 数组的创建 NSArray *array=[[NSArray alloc] initWithObjects:@"1",@"2",@"3", nil]; NSArray *array1=[[NSArray alloc] initWithArray:array]; NSArray *array2...
阅读全文
posted @ 2015-06-06 14:55 shao621
阅读(115)
评论(0)
推荐(0)
OC 1 NSString的小结
摘要: //字符串的创建 NSString *str1=@"hello world , are you ok"; NSString *string1=[NSString stringWithFormat:@"%@",@"hello"]; NSLog(@"%@",string1); //1 length 侧...
阅读全文
posted @ 2015-06-06 14:46 shao621
阅读(166)
评论(0)
推荐(0)
上一页
1
2
公告