ipad标签栏旋转
请帮助解决这个菜鸟问题,但真的让我发疯>
如果我从头开始为 ipad 创建一个项目(使用基于 Windows 的应用程序), 并添加一个 tabbar ,带有firstviewController和secondviewController,它工作正常, 以横向模式启动, 但在 info.plist 中我将其设置为 Landscape(左主页按钮), 但实际上在模拟器中是从右侧的按钮开始的!
在 FirstViewController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || 界面方向 == UIInterfaceOrientationLandscapeRight) 返回是; 别的 { 返回否;所以
它从横向开始,并随着模拟器旋转而旋转,
但是如果我为 iphone 标签栏创建一个模板应用程序, 设置info.plist 初始界面方向>横向(左主页按钮)
并添加上面的代码,它不起作用! 模拟器从左侧的按钮开始,但侧面的选项卡栏,
与我从 iPhone 移植到 iPad 的应用程序遇到的问题相同(横向) 我进入了横向启动模式,但选项卡栏仍然位于侧面!
另外,使旧的移植应用程序在侧面显示模拟器的唯一方法是 UIInterfaceOrientation UIIntefaceOrientationLandscapeLeft(不适用于初始界面方向),不允许我选择键的值,但它在横向上显示模拟器,
所以,, 我该怎么做才能在横向模式下显示标签栏??? 从头开始制作标签栏是为了看看代码是否可以工作,但它没有? 为什么它在 Windows 应用程序制作的选项卡栏中工作,而不是在选项卡栏应用程序中工作? 我只想让标签栏以横向方式显示啊,
谢谢
please help with this noob questions but really making me go crazy>
if I create a project from scratch (using windows based app) for the ipad,
and add a tabbar , with firstviewController, and secondviewController, it works fine,
starts in landscape mode,
but in info.plist I set it to Landscape(left home button),
but really in simulator starts with the button on the right side!
in the FirstViewController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight)
return YES;
else {
return NO; }}
so it starts in landscape, and rotates as the simulator rotates,
but if I create a template app for iphone tabbar,
set the info.plist
Initial interface orientation> Landscape (left home button)
and add the code above, IT DOESNT WORK!!!
simulator starts with button at left but tab bar on the side,
same problem that I had with an app that Im porting from iphone to ipad, (landscape intended)
I get to the landscape start mode, but the tab bar remains on the side!
also the only way to make the old ported app to show the simulator on the side was with
UIInterfaceOrientation UIIntefaceOrientationLandscapeLeft (didnt work with Initial interface orientation), does not let me choose the value for the key, but it shows the simulator on landscape,,
so,,
what can I do please to show the tab bar on landscape mode???
the tabbar from scratch was made to see if the code will work , but it didnt??
why does it work in the tab bar made from windows app and not tab bar app?
I just want the tab bar to show in landscape ahhh,
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 info.plist 中设置支持的界面方向
in the info.plist set Supported Interface Orientations