文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>使用NavigationController, 或ModalViewController实现旋转新视图横屏,再旋转返回

使用NavigationController, 或ModalViewController实现旋转新视图横屏,再旋转返回

时间:2010-09-17  来源:BradyChen

调用[self presentModalViewController:picker animated:YES]; 然后把设备换了方向,  cancel 。但是之前的view没有跟着改变。 在UIInterfaceOrientationPortrait 和UIInterfaceOrientationLandscape 调用是两个不同的view。
请问如何解决
  -(BOOL)should  事件中 [self presentModalViewController:picker animated:YES];    换方向进入新视图
[self dismissViewControllerAnimated:YES];     在新视图退出返回
   注意  return YES;

-(BOOL)should 事件
或者 [self.navigationController pushViewController: newview  animated:YES];进新视图
      注意   return YES;
在新视图   -(void)willRoa…Interface…  事件中写[slef.navigationController  popViewcontrollerAnimated:YES];



其他细节部分自行调整
相关阅读 更多 +
排行榜 更多 +
美味寿司店1.8.3版

美味寿司店1.8.3版

休闲益智 下载
118主题壁纸

118主题壁纸

主题美化 下载
每刻相机

每刻相机

图像拍照 下载