摘要: ---恢复内容开始---/* 6462192 http://static.oschina.net/uploads/user/587/1175932_50.jpg?t=1418648003000 1175932 3 1 2015-09-01 00:05:27 2 0 ... ... 阅读全文
posted @ 2015-09-01 11:10 Caolongs 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.修改tableView的属性 //加载xib视图或直接注册xib cell自定义表格 cell = [[[NSBundle mainBundle] loadNibNamed:@"TweetCell" owner:self options:nil] firstObject]; 2.AutoLayo 阅读全文
posted @ 2015-09-01 10:55 Caolongs 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cocoachina.com/ios/20141217/10669.html 阅读全文
posted @ 2015-08-31 21:18 Caolongs 阅读(130) 评论(0) 推荐(0) 编辑
摘要: //当进行界面切换的(Segue形式)执行 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"ToMessage"]) { MessageViewController *mvc = segue.des... 阅读全文
posted @ 2015-08-31 21:16 Caolongs 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #import"Masonry" 实现效果图 - (void)testBasicLayout { //靠右对齐,100x100,top-50 right-50 UIView *redView = [[UIView alloc] init]; redView.backgroundColor = [UI 阅读全文
posted @ 2015-08-31 21:05 Caolongs 阅读(171) 评论(0) 推荐(0) 编辑
摘要: UITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped <UITableViewDataSource,UITableViewDelegate>协议 ##UITAbleeViewDataSource协议 //调用数据源的下面方法 阅读全文
posted @ 2015-08-28 16:53 Caolongs 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 引用第三方库AFNetworking #import "AFNetworking.h" #import "UIKit+AFNetworking.h" 通过AFNetworking,使用url从网上加载图片(#import "UIKit+AFNetworking.h") [cell.iconImage 阅读全文
posted @ 2015-08-27 21:54 Caolongs 阅读(282) 评论(0) 推荐(0) 编辑
摘要: UICollectionView和UITableView十分相似 一般须遵守协议 < UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout > 1. 基本使用 (1)先创建, 阅读全文
posted @ 2015-08-27 20:34 Caolongs 阅读(275) 评论(0) 推荐(0) 编辑