在 portaint Actionsheet 中显示在标签栏中。在横向 - 在窗口中。我注意到在旋转之前从标签栏中删除 UIActionSheet,以便在旋转后显示在窗口中。内部– willRotateToInterfaceOrientation:duration
解雇行动表不起作用。
问问题
1944 次
2 回答
4
您可以为此使用 NSNotification。在您的 viewdidload 文件中添加此通知程序,您将在方向更改时收到通知:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(OrientationChanged:)
name:@"UIDeviceOrientationDidChangeNotification"
object:nil];
...添加此方法:
-(void)OrientationChanged
{
}
于 2010-11-13T11:16:35.253 回答
0
我在旋转之前关闭并在之后显示,然后在中间替换 UIActionSheet;
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[APP.validSave dismissWithClickedButtonIndex:1 animated:NO];
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
[APP.validSave showInView:APP.navController.view];
}
于 2011-01-31T12:31:43.080 回答