English 中文(简体)
缩略语
原标题:iPhone View Animation

我正试图改变看法,但我希望对看法的推测,并像一个文件夹,看看底是什么。

如果是估算,将不胜感激。

Actually the view that the maps app uses when you hit the button on the corner.

最佳回答

Something like this should work:

MyViewController *myView = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
myView.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(dismissModalViewControllerAnimated:)] autorelease];
UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:myView];
navigation.modalTransitionStyle = UIModalTransitionStylePartialCurl;
navigation.delegate = self;
[self presentModalViewController:navigation animated:YES];

此处的关键是<条码> 模式转移标准,在提出模式意见之前,必须将其设定为<条码>。

更具体地说:。 UIViewConller 类别参考资料(<条码>、格式前标准/编码>、<条码>、模式传输标准、<条码>、现行ModalViewController:animated:和<条码>。

问题回答

这样做有两种基本方法,即旧的、不再建议的:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown 
                                  forView:containerView cache:YES];

[containerView addSubview:subview];

[UIView commitAnimations];

而新的一则(它使用4级和4级支助的区块):

[UIView transitionWithView:containerView duration:0.5
    options:UIViewAnimationOptionTransitionCurlDown
    animations:^ { [containerView addSubview:subview]; }
    completion:nil];




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签