私は次のエラーを取得しています:クラスメソッド
このコードを使用してclass method '+view' not found return type defaults to 'id'
:
[window addSubview:[ButtonsViewController view]];
は、誰かが助けてくださいことはできますか?ここ
は完全なコードです:
#import "openURLAppDelegate.h"
#import "ButtonsViewController.h"
#include "ButtonsViewController.h"
@implementation openURLAppDelegate
@synthesize window;
@synthesize ButtonsViewController;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:[ButtonsViewController view]];
[window makeKeyAndVisible];
}
- (void)dealloc {
[ButtonsViewController release];
[window release];
[super dealloc];
}
@end
'ButtonsViewController'はクラスです。クラスを合成したり解放したりすることはできません。この目的のために、このクラスのインスタンスを作成する必要があります。また、 'include'指示文も削除する必要があります。 – Alladinian