English 中文(简体)
IDViewController与EAGLView之间的平稳过渡
原标题:Animated transition between UIViewController and EAGLView

我的“意见”主要有两点:“观点”:一个有某些纽芬兰语、文字等的“观点”和一个窗口,所有开放式欧洲经济体系都存在。 当我从IDViewController向窗户过渡时(例如当用户点击“作用”时) 我这样做了:

[window ExchangeSubviewAtIndex:0 withSubviewAtIndex:1];

也许这不是这样做的理想方式? 我不想调用国际会计师联合会所用的资源。 我只想把窗户放在前面。 www.un.org/Depts/DGACM/index_french.htm

我真的要看一看一幅非常简单的黑白。

最佳回答

Have you tried plain old UIViewAnimation clause? Maybe play with view properties of hidden or alpha and if you want this to fade out to black, you need to [Window setBackgroundColor:[UIColor blackColor]]; first. Make sure the animations happen in the main thread. Sample code following with view1 being the first subview of window and view2 the other subview of window.

- (void)switchToView1 {
[UIView beginAnimations:@"fadeOut1" context:NULL];
[UIView setAnimationDuration:.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)];
view1.hidden = YES;
[UIView commitAnimations];  
}

- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void    *)context {
if ([@"fadeOut1" isEqualToString:animationID] && [finished intValue] == 1) {
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:.5];
    view2.hidden = NO;
    [UIView commitAnimations];
}
}

如果做这种工作,则要打好uck。

问题回答

暂无回答




相关问题
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风格的解决办法,只是一个简单的袖珍流程......

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

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

热门标签