上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
  2015年11月21日
摘要: 1.自定义视图流程:1⃣️ 新建一个类 继承于UIView2⃣️ 将控件写成view的属性3⃣️ .m初始化4⃣️ 直接在类外引入头文件 调用5⃣️ 注意: 建议不要把控件的初始化写在系统的初始化方法里直接用self调方法 自己封装方法2.视图控制器指定自定义View新建ViewController... 阅读全文
posted @ 2015-11-21 17:05 sharkHZ 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1.target/action设计模式:AppDelegate.mRootViewController.mClickView.hClickView.mColorView.hColorView.mRootView.hRootView.mButtonView.hButtonView.m2.delegat... 阅读全文
posted @ 2015-11-21 17:04 sharkHZ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1.UISegmentedControl①:初始self.segment = [[UISegmentedControl alloc]initWithItems:[NSArray arrayWithObjects:@"一卡通",@"信用卡",@"一网通", nil]];self.segment.fra... 阅读全文
posted @ 2015-11-21 17:03 sharkHZ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1.UINavigationController1⃣️:初始UINavigationController *rootNC = [[UINavigationController alloc]initWithRootViewController:rootVC];2⃣️:self.window设置主con... 阅读全文
posted @ 2015-11-21 17:02 sharkHZ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.UIScroLLView基本1⃣️:初始self.scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(100, 100,200, 400)];self.scrollView.backgroundColor = [UIColor w... 阅读全文
posted @ 2015-11-21 17:02 sharkHZ 阅读(92) 评论(0) 推荐(0) 编辑
摘要: tintColor 标题色barTintColor 背景色1.UITableView表视图1⃣️:Plain:self.tableView = [[UITableView alloc]initWithFrame:self.bounds style:UITableViewStylePlain];2⃣️... 阅读全文
posted @ 2015-11-21 17:01 sharkHZ 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1.plistNSString *filePath = [[NSBundle mainBundle]pathForResource:@"name" ofType:@"plist"];NSDictionary *dict = [NSDictionary dictionaryWithContentsOf... 阅读全文
posted @ 2015-11-21 17:00 sharkHZ 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1.UITableView补充1⃣️:-(void)p_data@property (nonatomic,retain)NSMutableArray *dataArray;@property (nonatomic,assign)UITableViewCellEditingStyle editStyl... 阅读全文
posted @ 2015-11-21 17:00 sharkHZ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.单例1⃣️:单例类:单例类可以初始化一个单例对象 只被初始化一次,它的生命周期和整个程序的生命周期一样,一般用来传值2⃣️:步骤①:必须有一个类方法+ (instancetype)shareHandle;②:单例对象 放在静态区static DataHandle *handel = nil;③:... 阅读全文
posted @ 2015-11-21 16:59 sharkHZ 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.自定义控件2.model3.多种cell混合使用4自适应高度5.懒加载 阅读全文
posted @ 2015-11-21 16:59 sharkHZ 阅读(261) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页