我试图解散一个页面卷曲的modalviewcontroller.curl工作正常,但我似乎无法在modalviewcontroller下显示tableview.modalviewcontroller的图像仍然在卷曲的页面下.如果我在动画结束前关闭modalviewcontoller,则动画不会显示.这是我的代码:
//hide splash screen
- (void)hideSplash{
[UIView beginAnimations:nil context:nil];
//change to set the time
[UIView setAnimationDuration:2];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:modelView cache:NO];
// do your view swapping here
//[[self modalViewController] dismissModalViewControllerAnimated:NO];
[UIView commitAnimations];
//[self.view sendSubviewToBack:self.view];
}
Run Code Online (Sandbox Code Playgroud)
希望有人可以帮忙!干杯尼克
我有一个UITapGestureRecognizer等待doubletap将scrollview缩小回原始级别.但是有一种情况我在scrollview的顶部添加了几个按钮.这些按钮反应非常缓慢(缓慢),因为一旦我点击一个按钮,应用程序等待第二次点击.如果没有,则按下按钮.
任何人都知道如何让按钮快速响应?我可以在按钮启动时暂时禁用GestureRecogniser吗?
干杯尼克