现在是凌晨一点,准备睡觉,白天学习效率不高的话就得加班。今天学习了TableView NavigationController导航控制器 TableViewController 晚上但作业是利用这些控件加上前几天学的正反向传值来实现一个简单的通讯录。因为白天学的知识点没有掌握好,所以晚上做作业时需....
分类:
移动开发 时间:
2015-09-11 01:29:26
阅读次数:
141
在iOS开发中, 要实现UIViewController之间的跳转,通过navigationController的pushViewController或者UIViewController自身的presentViewController的方式即可。但要求是从一个UIViewController跳到另外一个UIViewController中。如果要从NSObject子类的执行代码中做跳转至UIViewController...
分类:
移动开发 时间:
2015-09-10 14:27:57
阅读次数:
173
1 //1. 设置navigationBar是否半透明效果,默认是 =YES 的,我们把它变成NO就可以设置navigationBar的颜色为不透明的颜色 2 self.navigationController.navigationBar.translucent = NO; //不...
分类:
移动开发 时间:
2015-09-10 12:54:42
阅读次数:
170
//导航控制器跳转到下一页 [self.navigationController pushViewController:second animated:YES]; //返回上一页 [self.navigationController popViewControllerAnimated:YES];.....
分类:
其他好文 时间:
2015-09-07 22:26:09
阅读次数:
212
UINavigationbar的属性translucent,用来控制导航条的透明度的;iOS7+版本后,navigationbar的translucent属性默认为YES,及默认带有透明度[self.navigationController.navigationBar setTranslucent:...
分类:
其他好文 时间:
2015-09-07 19:19:29
阅读次数:
254
导航条跳转页面的考虑对于用navigationcontroller来跳转页面的时候,其实是执行堆栈的进栈和出栈的操作,要想释放内存,那么在来回跳转的时候,就要考虑几个问题了1 A =>B=>C=>D,D=>A 有根视图的话 (HOME)[self.navigationController popTo...
分类:
移动开发 时间:
2015-09-07 10:57:22
阅读次数:
135
解决方法可以在自定义的TabbarViewController里viewDidLoad方法里self.view.backgroundColor = [UIColor whiteColor];如果没有自定义tabbarController的话可以这样self.navigationController....
分类:
其他好文 时间:
2015-09-06 22:49:13
阅读次数:
227
viewDidLoad中设置以下属性self.automaticallyAdjustsScrollViewInsets = NO;
分类:
移动开发 时间:
2015-09-06 20:11:41
阅读次数:
131
1.三种方式监听方式:addTarget方法;使用代理方法;[[NSNotificationCenter defaultCenter] addObserver]方法监听通知;2.在storyboard删除原来的ViewController后再添加NavigationController时没有自动设置...
分类:
移动开发 时间:
2015-09-06 09:50:42
阅读次数:
175
if ([self.navigationController.navigationBar respondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ NSArray *list=self.navigationC...
分类:
其他好文 时间:
2015-09-04 22:29:17
阅读次数:
135