在iOS7中,新增加了一个小小的功能,也就是这个self.navigationController.interactivePopGestureRecognizer。1.情景概况:在UINavigationController自定义返回按钮后无法实现手势右滑到上一级界面。2.解决方案:self.nav...
分类:
其他好文 时间:
2015-07-18 18:25:31
阅读次数:
122
1.系统自带pop方法">系统自带pop方法
如果我们没有对navigation中的back按钮进行自定义,我们可以直接使用系统自带的左滑pop方法。但是如果我们对back按钮,进行了自定义,我们就要对self.navigationController.interactivePopGestureRecognizer这个属性进行设置了。关键代码:__weak typeof(self) we...
分类:
移动开发 时间:
2015-07-15 21:03:52
阅读次数:
139
self.navigationController?.navigationBar.titleTextAttributes
= [NSForegroundColorAttributeName:UIColor.whiteColor(),UIFont(name: "Heiti SC", size: 24.0)!];...
分类:
编程语言 时间:
2015-07-15 19:22:32
阅读次数:
148
CGRect rect = [[UIApplication
sharedApplication] statusBarFrame];
状态栏的高度:
float status height = rect.size.height;
导航栏的高度:
float navigationheight = self.navigationController.navigationBar.frame.s...
分类:
移动开发 时间:
2015-07-15 17:08:21
阅读次数:
444
一 修改导航栏颜色 导航栏在哪个页面代码放在那里面
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:(21.0/255.0) green:(153.0 / 255.0) blue:(224.0 / 255.0) alpha:1]; ...
分类:
移动开发 时间:
2015-07-14 18:13:41
阅读次数:
246
在ios开发的过程中,我们经常需要修改NavigationController的背景颜色,当使用方法[self.navigationController.navigationBar setBackgroundColor:[UIColor redColor]]时,运行的结果并不能修改北京颜色:
现在提供一种新方法来解决这个问题:
写一个NavigationBar写一个类别:
@in...
分类:
移动开发 时间:
2015-07-14 15:50:52
阅读次数:
205
ios开发-动画基础(CALayer、anchorPoint)、pdf绘制、图形上下文(几种图形上下文)、导航控制器(再appDelegate中设置navigationController的视图,并将navigationController作为根视图,由此,navigationController类...
分类:
移动开发 时间:
2015-07-14 06:05:49
阅读次数:
231
有些按钮在底部SCrollView滑动的时候却是不动的,原理是加在self.view上,再用bringSubviewToFront 函数讲其层级调为最上层。导航栏位置的按钮就用[self.navigationController.navigationBar bringSubviewToFront:b...
分类:
其他好文 时间:
2015-07-13 15:48:02
阅读次数:
208
其一屏幕原点坐标 (x ,y) 受 self.navigationController.navigationBar 的setTranslucent (BOOL) 属性控制在 iOS7 以后 translucent 属性默认为 YES 该属性含义是 毛玻璃 半透明效果 YES 起始 坐标 为屏幕顶.....
分类:
移动开发 时间:
2015-07-10 13:16:54
阅读次数:
160
最近在研究一个项目,利用手势控制动画的进度,发现简单的还可以,如果遇到了复杂的情况就比较麻烦了,ios7新出了一个特性,可以利用NavigationController的自定义转场动画,提供进度来控制。//这个方法控制转场动画的进度
-(id<UIViewControllerInteractiveTransitioning&g..
分类:
其他好文 时间:
2015-07-09 22:51:17
阅读次数:
165