2015年8月31日

tableView中不易被注意到的方法

摘要: - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{}这个方法 在 reloaddata时会调用 阅读全文

posted @ 2015-08-31 23:55 🌞Bob 阅读(121) 评论(0) 推荐(0) 编辑

在scrollView中使用pageControl

摘要: 在scrollView中使用pageControl 要这样才能效果好,合理而且人性化-(void)scrollViewDidScroll:(UIScrollView*)scrollView{if(self.pageControl){ self.pageControl.currentPage= scr... 阅读全文

posted @ 2015-08-31 23:48 🌞Bob 阅读(179) 评论(0) 推荐(0) 编辑

在系统方法中调用navigationController的标准写法

摘要: 在系统方法中调用navigationController的标准写法-(void)viewWillAppear:(BOOL)animated{[super viewWillAppear:animated];if (self.navigationController) {self.navigationC... 阅读全文

posted @ 2015-08-31 23:44 🌞Bob 阅读(188) 评论(0) 推荐(0) 编辑

通知中心

摘要: 最简单的方式在b文件中建立接收者[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(action) name:@"xxx" object:nil];并在action中做出响应在a文件中发送通知[[NSNo... 阅读全文

posted @ 2015-08-31 17:39 🌞Bob 阅读(243) 评论(0) 推荐(0) 编辑

导航