0

iPad を回転させても、アプリケーションが回転しませんでした。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations

    return YES;

} 

私のアプリケーションでは、アプリケーションの詳細をどこに置くべきかわかりません: MainWindow.xib: そのファイル所有者クラスは、プレースホルダーとオブジェクトの UIApplication です: App Controller そのクラスは App Controller & Painting Window そのクラスは PaintingWindow & Painting ですビューのクラスは PaintingView です

そして私は AppController.h と .m を持っています

 @interface AppController : NSObject <UIApplicationDelegate>

私はPaintingWindow.hと.mを持っています

@interface PaintingWindow : UIWindow

私はPaintingView.hと.mを持っています

@interface PaintingView : UIView

この関数はどこに配置すればよいですか?

4

1 に答える 1

0

そのメソッドは UIViewController メソッドであるため、UIViewController のサブクラスを配置する必要があります。

于 2012-05-20T01:40:59.333 に答える