上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: A.内存管理 NSString: copy 基本数据类型、结构体(int, CGFloat, BOOL, CGRect等):assign 对象(如自定义model类型、NSArray、NSDictionary):strong 控件:weak 阅读全文
posted @ 2014-12-06 00:22 HelloVoidWorld 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Controller: 1 // 2 // ViewController.m 3 // Weibo 4 // 5 // Created by hellovoidworld on 14/12/4. 6 // Copyright (c) 2014年 hellovoidworld. All rig... 阅读全文
posted @ 2014-12-06 00:19 HelloVoidWorld 阅读(318) 评论(0) 推荐(0) 编辑
摘要: A.需求1.类似于微博内容的展示2.头像3.名字4.会员标志5.内容6.分割线7.配图(可选,可有可无)code source:https://github.com/hellovoidworld/WeiboContentDemoB.思路、步骤1.Controller:UITableViewContr... 阅读全文
posted @ 2014-12-06 00:18 HelloVoidWorld 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 1.主控制器: 1 // 2 // ViewController.m 3 // GroupPurchase 4 // 5 // Created by hellovoidworld on 14/12/3. 6 // Copyright (c) 2014年 hellovoidworld. All rights reserved. 7 // 8 9 ... 阅读全文
posted @ 2014-12-04 00:52 HelloVoidWorld 阅读(301) 评论(0) 推荐(0) 编辑
摘要: A.需求1.头部广告2.自定义cell:含有图片、名称、购买数量、价格3.使用xib设计自定义cell,自定义cell继承自UITableViewCell4.尾部“加载更多按钮”,以及其被点击之后的数据加载刷新、动画效果code source:https://github.com/hellovoid... 阅读全文
posted @ 2014-12-04 00:46 HelloVoidWorld 阅读(1012) 评论(21) 推荐(3) 编辑
摘要: A.需求1.以LOL英雄列表为蓝本,给其加上实时修改英雄名称的功能2.使用UIAlertView3.全局刷新reloadData4.局部刷新B.实现1.使用UIAlertView // 弹窗 UIAlertView *alertView = [[UIAlertView alloc] initWith... 阅读全文
posted @ 2014-12-02 15:18 HelloVoidWorld 阅读(411) 评论(0) 推荐(0) 编辑
摘要: A.需求1.使用汽车品牌名称头字母为一个Model,汽车品牌为一个Model,头字母Model嵌套品牌Model2.使用KVC进行Model封装赋值3.展示头字母标题4.展示索引(使用KVC代替遍历取出所有索引值)B.实现1.Model嵌套其实就是将另一个Model作为成员.plist 文件结构Gr... 阅读全文
posted @ 2014-12-02 12:07 HelloVoidWorld 阅读(628) 评论(0) 推荐(1) 编辑
摘要: 对着要指定dataSource或者delegate的控件右击,然后拖动线到指定的控制器上 阅读全文
posted @ 2014-12-01 15:43 HelloVoidWorld 阅读(306) 评论(0) 推荐(0) 编辑
摘要: A.需求1.使用只有一个section的TableView来显示LOL 的英雄列表2.内容包括标题、副标题、图标3.使用plain样式4.使用MVC模式heros.plist 文件结构:这个其实很简单,直接上代码了 1 // 2 // Hero.h 3 // LOLHero 4 // 5 // ... 阅读全文
posted @ 2014-12-01 15:34 HelloVoidWorld 阅读(528) 评论(0) 推荐(0) 编辑
摘要: A.实现思路 1.拖入UITableView 2.拖曳、连线UITableView控件 3.Controller遵守UITalbeViewDataSource协议 4.设置UITableView的dataSource 5.加载数据到Model 6.从Model解析数据,显示到View上 B.实现细节 1.UITableView style (1)Grouped,成组出现,标题和尾部会... 阅读全文
posted @ 2014-12-01 01:23 HelloVoidWorld 阅读(702) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页