自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 269

原创 微博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 220

原创 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 380

原创 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 209

原创 iOS去重 排序

iOS 去重 排序去重for (NSString *str in self.sectionIndexTitle) { if (![dataArr containsObject:str]) { [dataArr addObject:str]; } } self.sectionIndexTitle = dataArr;排序

2017-03-07 15:07:14 145

原创 kvc 定义 model

//字典类型NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"雨松MOMO",@"name",@"15810463139",@"number", nil];NSObject *object = [dictionary objectForKey:@"name”];//kvc 定义 model-(

2015-10-21 20:55:47 249

原创 UINavigationController总结

UIBarItem: 1.UIBarButtonItem;2.UITabBarItemUIView: 1.UINavigationBar、UIToolBar、UITabBarUIResponder: 1.UIViewController、UITabBarController、UINavigationControllerUITabBarController结构

2015-10-20 20:08:10 218

原创 Foundation 心得、笔记

学习心得

2015-10-20 13:29:58 206

QYNeteaseNew.zip

QYNeteaseNew.zip

2016-02-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除