新建了個(gè)xcode工程,測(cè)試的時(shí)候發(fā)現(xiàn),手機(jī)上相關(guān)的旋轉(zhuǎn)方法正常執(zhí)行,IPAD上的相關(guān)旋轉(zhuǎn)方法都不執(zhí)行。最后發(fā)現(xiàn)的問(wè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)了。