快速連結

2013年11月24日

iOS螢幕旋轉觸發自定義function (xcode 5)

資料來源與參考:官方:Supporting Multiple Interface Orientations

iOS6之前使用的旋轉函式已經無法使用了,而是使用-(NSUInteger)supportedInterfaceOrientations-(BOOL)shouldAutorotate來配合旋轉。
但是如果在旋轉後要呼叫自定程序去處理自定界面呢?

2013年11月21日

進入XCode 5時代後,怎麼無法Archive

好不容易生成Provisioning Profile檔案,試著Archive,卻發生報錯:
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “XXXX”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'
有兩個解決方案:
Provisioning Profile的設定更正
或是
使用文本編輯器修改xcodeproj檔案