[英]iPhone 3.x and 4.x: shouldAutorotateToInterfaceOrientation is returning TRUE, but nothing happens
應該會自動調用shouldAutorotateToInterfaceOrientation ...,但是當我旋轉iphone ...或模擬器時...什么都不會改變。
我以為我要做的就是:
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
NSLog(@"this is being called ok");
return(YES); // Or return(TRUE);
}
但是我想我還需要設置其他內容????
我認為添加到標簽欄控制器的所有視圖控制器都必須支持方向,以便標簽欄控制器支持它(默認情況下,UIViewController僅支持縱向)。 否則,如果您在支持界面的選項卡上旋轉到橫向,然后切換到不支持的選項卡,則界面將變得混亂。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.