1
我正在iphone應用程序中使用滾動條顯示相機視圖縮放。 我想添加功能,當用戶將設備從portarit旋轉到風景或反之亦然時,相機視圖應該相應地進行調整。設備旋轉:縱向橫向
我該如何解決 請幫
感謝, Aaryan
我正在iphone應用程序中使用滾動條顯示相機視圖縮放。 我想添加功能,當用戶將設備從portarit旋轉到風景或反之亦然時,相機視圖應該相應地進行調整。設備旋轉:縱向橫向
我該如何解決 請幫
感謝, Aaryan
你的UIViewController需要實現以下方法:
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation