1. 最普通的Modal QKSecondViewController *second = [[QKSecondViewController alloc]init]; [self presentViewController:second animated:YES completion:nil];.....
分类:
移动开发 时间:
2015-03-05 10:42:32
阅读次数:
157
原型: - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion 描述: Presents a view controller modally. ? In a horizon...
分类:
其他好文 时间:
2015-02-28 16:52:20
阅读次数:
146
一、最普通的视图控制器UIViewContoller 一个普通的视图控制器一般只有模态跳转的功能(ipad我不了解除外,这里只说iPhone),这个方法是所有视图控制器对象都可以用的,而实现这种功能,有两种方法。 1、通过方法- (void)presentViewController:(UIVi.....
分类:
移动开发 时间:
2015-02-09 22:48:23
阅读次数:
72889
1. UIPresentationController的作用 1>管理所有Modal出来的控制器 2>管理通过这个方法 - (void) presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)co.....
分类:
移动开发 时间:
2015-02-08 00:21:43
阅读次数:
211
DAY05回顾1 多MVC之间的页面切换 1.1推出新的MVC presentViewController 1.2返回到推出的原VC dismissViewController2 多MVC之间的切换传值 2.1正向传值 在B中声明一个属性 A中给这个属性赋值 然后传到B中使用 2.2 反向传值 方法...
分类:
移动开发 时间:
2015-02-07 20:18:19
阅读次数:
303
presentViewController、pushViewController与transitionFromViewController
分类:
其他好文 时间:
2015-01-23 17:55:34
阅读次数:
120
什么时候会执行viewDidLoad方法这个博文是为了解释,为何有时候,你给属性赋值,在viewDidLoad方法中却取不到值的原因。第一种情况,presentViewController会执行被present的控制器的viewDidLoad方法:第二种情况,即使不执行推出或者present操作,也...
分类:
其他好文 时间:
2015-01-15 23:31:10
阅读次数:
179
我在应用里边present一个很简单的Controller感觉总有个零点几秒的延迟,有的时候更严重,点一次根本没有跳转,然后随便再点一下才会跳,在网上搜了一下,找到一个方法可以解决这种问题:
dispatch_async(dispatch_get_main_queue(), ^{
MessagePushSetViewController * vc =...
分类:
移动开发 时间:
2015-01-12 11:36:57
阅读次数:
2077
在viewA中有一个button,点击后跳转到另一个页面,用下面这段代码viewB会黑屏,什么都看不到。
-(void)login:(id)sender{
mainViewController *mainView=[[mainViewController alloc]init];
NSLog(@"%@",__name.text);
if([__name.text isEqualToStri...
分类:
移动开发 时间:
2015-01-12 09:26:56
阅读次数:
205
自定义Segue
StoryBoard三种连接中,有一种类型是Custom,开发者可以使用自定义的Segue,自定义Segue类需要继承类UIStoryBoardSegue,并重写perform方法:
- (void)perform
{
NSLog(@"使用自定义连接");
[self.sourceViewController presentViewController:sel...
分类:
其他好文 时间:
2014-12-24 11:44:30
阅读次数:
133