寫部落格才潮?!
2016年5月4日 星期三
iOS tips - Force ImagePicker landscape view
ImagePicker如果沒加上一段神秘的code,在target只設定Landscape的話,一打開ImagePicker,系統不囉唆馬上給一個crash,要解決這問題很簡單,在會出現picker的view上加了這段code就沒問題了
- (
UIInterfaceOrientationMask
)supportedInterfaceOrientations{
return
UIInterfaceOrientationMaskLandscapeRight
;
}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言