08 2016 档案

调用系统自带的相机,日历等,将英文设置为中文
摘要:设置info.plist中的 Localization native development region = China; Localized resources can be mixed = YES; 阅读全文

posted @ 2016-08-16 18:13 哈利波特大 阅读(260) 评论(0) 推荐(0)

判断UITableView滚动是否到底
摘要:- (void)scrollViewDidScroll:(UIScrollView *)aScrollView { CGPoint offset = aScrollView.contentOffset; CGRect bounds = aScrollView.bounds; CGSize size 阅读全文

posted @ 2016-08-16 17:59 哈利波特大 阅读(320) 评论(0) 推荐(0)

ios 分组列表头部空白处理
摘要:在viewWillAppear里面添加如下代码://分组列表头部空白处理 CGRect frame = myTableView.tableHeaderView.frame; frame.size.height = 0.1; UIView *headerView = [[UIView alloc] i 阅读全文

posted @ 2016-08-16 16:33 哈利波特大 阅读(237) 评论(0) 推荐(0)

滑动cell 显示的按钮 类型分别是 删除 置顶 其他
摘要:- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { //删除按钮 UITableViewRowAction *deleteRowAction = 阅读全文

posted @ 2016-08-16 14:17 哈利波特大 阅读(130) 评论(0) 推荐(0)

获取View所在的控制器
摘要:- (UIViewController *)ViewController { id nextResponder = [self nextResponder]; while (nextResponder != nil) { if ([nextResponder isKindOfClass:[UIVie 阅读全文

posted @ 2016-08-16 14:12 哈利波特大 阅读(143) 评论(0) 推荐(0)

新浪微博动态cell的计算总结
摘要:1.自定义cell 2.在cell中要把显示的控件全部添加上 3.创建Frame模型,这个模型中包含数据模型(Status)@property (nonatomic, strong) PFStatus *status; // 模型;还要包含要显示控件的属性,例如:/**原创微博的整体*/@prope 阅读全文

posted @ 2016-08-10 16:42 哈利波特大 阅读(239) 评论(0) 推荐(0)