会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zzqqrr
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2017年8月20日
ios九宫格算法
摘要: - (void)viewDidLoad { [super viewDidLoad]; //1.总列数(一行最多3列) int totalColumns=3; CGFloat appW=50; CGFloat appH=50; //2.间隙=(控制器的view的宽度-3*应用宽度)/4 CGFloat margin=(self.view.fr...
阅读全文
posted @ 2017-08-20 15:33 qrcode
阅读(252)
评论(0)
推荐(0)
编辑
ios中字典转模型的创建以及简单用法
摘要: // appModel.h // Created by zzqqrr on 17/8/19. // #import @interface appModel : NSObject @property (nonatomic,copy) NSString *title; @property (nonatomic,copy) NSString *icon; - (id)initWithDict:...
阅读全文
posted @ 2017-08-20 14:41 qrcode
阅读(128)
评论(0)
推荐(0)
编辑
2017年8月19日
UIIimageView读取图片的两种方式及动画的执行
摘要: /**count:图片数量 name:图片名称*/ - (void)runAnimationWithCount:(int)count name:(NSString *)name { if(self.tom.isAnimating)return;//如果动画正在执行就不重复执行 NSMutableArray *images=[NSMutableArray array];//创建一个...
阅读全文
posted @ 2017-08-19 16:34 qrcode
阅读(153)
评论(0)
推荐(0)
编辑
2017年8月18日
ios读取plist文件:
摘要: @property (nonatomic,strong) NSArray *imageData;//定义一个数组 //懒加载数据 -(NSArray *)imageDate { if(_imageDate==nil) { NSBundle *bundle=[NSBundle mainBundle];//mainBundle可以获取手机的任何资源 NSString *path=[b...
阅读全文
posted @ 2017-08-18 18:01 qrcode
阅读(170)
评论(0)
推荐(0)
编辑
ios手动添加数组字典(NSMutableDictionary)
摘要: @property (nonatomic,strong) NSArray *imageData;//定义一个数组 -(NSArray *)imageDate { if(_imageDate==nil) { NSMutableDictionary *image1=[NSMutableDictionary dictionary]; image1["icon"]=@"a"; image1["titl...
阅读全文
posted @ 2017-08-18 17:55 qrcode
阅读(2006)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
公告