iOS6 0 xcode4 5 設定 橫屏

2021-06-09 19:21:10 字數 365 閱讀 6894

公升級xcode4.5    ios 6.0後以前的橫屏專案 變為了豎屏,以下為解決辦法:

將[window addsubview: viewcontroller.view];

替換為下面**:

if( [[

uidevice

currentdevice].

systemversion

floatvalue] <

6.0)

else

在rootviewcontroller 中新增下面兩個方法 即可:

- (nsuinteger) supportedinte***ceorientations

- (bool) shouldautorotate

Zxing在Xcode4 5 ios6的配置

xcode更新到4.5以後,原來使用的zxing庫有問題,在網上可以找到解決方案。問題1.iphone zxingwidget classes parsedresults parsedresult.m 78 41 incompatible pointer types sending class ak...

IOS 用 xcode 設定 開機啟動頁

step1 step2 將規定尺寸的從你的檔案中拖動進到固定位置.系統尺寸 解析度ios8 retina hd5.5 1242x2208 retina hd4.7 750x1334 landscape retina hd 5.5 2208x1242 ios7 640x960 retina4 640x...

設定Xcode 4同時支援舊版iOS

原文 xcode 4的architectures 設定預設只有armv7 也就是新的ios 裝置,包括iphone 3gs iphone 4 iphone 4s ipad ipad 2 等,而iphone iphone 3g ipod touch ipod touch 2 屬於armv6 架構。一 ...