- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 微博图片浏览器
微博图片浏览器 cell有一个imageURLvar imageURL: URL? { didSet{ // 1.重置属性 reset() // 2.显示菊花 activity.startAnimating() // 3.设置图片 iconView.sd_setImage(with: imageURL) { (image, _, _, _) -> Void
2017-03-09 10:40:59
302
原创 微博swift table view的布局
微博swift table view的布局 给cell传递模型 override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let status = statuses![indexPath.row] // 1.获取cell le
2017-03-09 10:17:29
245
原创 iOS cell 高度计算
iOS cell 高度计算 heightForCell:每一个cell对应一个模型,模型里面有cell的高度,以及对图片frame的重新赋值; - (CGFloat)cellHeight { if (!_cellHeight) { // 文字的最大尺寸 CGSize maxSize = CGSizeMake([UIScreen mainScreen].bounds.size.wid
2017-03-08 19:03:08
432
原创 iOS cell自适应 自定义cell
iOS cell自适应 自定义cell 自适应(self sizing cell) Subviews and auto layout. // Must set the following properties self.tableView.estimatedRowHeight = 85.0; self.tableView.rowHeight = UITableViewAu
2017-03-07 21:25:02
251
原创 iOS去重 排序
iOS 去重 排序 去重 for (NSString *str in self.sectionIndexTitle) { if (![dataArr containsObject:str]) { [dataArr addObject:str]; } } self.sectionIndexTitle = dataArr;排序
2017-03-07 15:07:14
166
原创 kvc 定义 model
//字典类型 NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"雨松MOMO",@"name",@"15810463139",@"number", nil]; NSObject *object = [dictionary objectForKey:@"name”]; //kvc 定义 model-(
2015-10-21 20:55:47
272
原创 UINavigationController总结
UIBarItem: 1.UIBarButtonItem; 2.UITabBarItem UIView: 1.UINavigationBar、UIToolBar、UITabBar UIResponder: 1.UIViewController、UITabBarController、UINavigationController UITabBarController结构
2015-10-20 20:08:10
241
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人