摘要: 页数 = (总个数 + 每页最大显示个数 - 1) / 每页显示最大的个数 阅读全文
posted @ 2014-02-10 23:21 —__MOMO__— 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 可以利用Tabview的separatorStyle属性来设置,选择其中的UITableViewCellSeparatorStyleNone 即可去除cell之间的下划线self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 阅读全文
posted @ 2014-02-10 23:20 —__MOMO__— 阅读(2150) 评论(0) 推荐(0) 编辑
摘要: 1.定义RGB 色彩。随机颜色我的抽为宏定义。便于各个文件中使用// 1.获得RGB颜色#define MTColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]// 2随机颜色#define MTRandomColor MTColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))//使用方法 MTCollectViewController *collect = [[MT 阅读全文
posted @ 2014-02-10 00:44 —__MOMO__— 阅读(701) 评论(0) 推荐(1) 编辑