[問題] View的翻轉
aView放了tableView存放資料 bView直接load網頁webView
做了aView點選cell作了presentModeViewControler
與bView dismissModeViewController的動作
設置bView的網頁是可以翻轉的 aView無法翻轉
只是旋轉橫向後 網頁的範圍卻只有tableView的直向大小範圍
右邊一個區塊是空白顏色的
也設置了bounds的大小
if(interfaceOrientation==UIInterfaceOrientationPortrait ||
interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown)
{
[self.view setBounds:CGRectMake(0, 0, 320, 480)];
}
else {
[self.view setBounds:CGRectMake(0, 0, 480, 320)];
}
只是轉成橫向 webView的顯示尺寸還是沒變成橫向的全螢幕
麻煩大大們的指點了!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.34.117.175
→
04/27 00:32, , 1F
04/27 00:32, 1F
推
04/27 01:12, , 2F
04/27 01:12, 2F
→
04/27 01:12, , 3F
04/27 01:12, 3F
→
04/27 01:14, , 4F
04/27 01:14, 4F
推
04/27 09:38, , 5F
04/27 09:38, 5F
→
04/27 09:39, , 6F
04/27 09:39, 6F
→
04/27 09:39, , 7F
04/27 09:39, 7F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章