新建了個(gè)xcode工程邑退,測(cè)試的時(shí)候發(fā)現(xiàn)绑洛,手機(jī)上相關(guān)的旋轉(zhuǎn)方法正常執(zhí)行敞贡,IPAD上的相關(guān)旋轉(zhuǎn)方法都不執(zhí)行仍源。最后發(fā)現(xiàn)的問題是info中的Supported interface orientations (iPad)項(xiàng)與General->Deployment Info下的Device Orientation配置不一致導(dǎo)致的心褐。
info中的Supported interface orientations (iPad)項(xiàng):
General->Deployment Info下的Device Orientation配置:
現(xiàn)將info中的Supported interface orientations (iPad)項(xiàng)中的item 0刪除掉,IPAD上就可以正常旋轉(zhuǎn)了笼踩。