iPad/iPhone 开发人员:displayViewController 正在横向渲染肖像
以下代码有效,但我的方向是横向,视图以纵向来来去去。有什么想法吗?
-(void)displayFirstScreen
{
UIViewController *displayViewController=[[UIViewController alloc] init];
displayViewController.view = displaySplash;
[self presentModalViewController:displayViewController animated:NO];
[self performSelector:@selector(removeScreen) withObject:nil afterDelay:2.0];
[displayViewController release];
}
-(void)removeScreen
{
[[self modalViewController] dismissModalViewControllerAnimated:YES];
}
提前致谢!
The following code works but my orientation is landscape and the view comes and goes in portrait. Any ideas?
-(void)displayFirstScreen
{
UIViewController *displayViewController=[[UIViewController alloc] init];
displayViewController.view = displaySplash;
[self presentModalViewController:displayViewController animated:NO];
[self performSelector:@selector(removeScreen) withObject:nil afterDelay:2.0];
[displayViewController release];
}
-(void)removeScreen
{
[[self modalViewController] dismissModalViewControllerAnimated:YES];
}
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这可能会解决您的问题
http://aralbalkan.com/2334
I think this might address your problem
http://aralbalkan.com/2334