objcスーパーpre記法のテスト
@synthesize window=_window; @synthesize rootController=_rootController; //@synthesize cutController=_cutController; //@synthesize combineController=_combineController; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. CGRect frameForWindow = [[UIScreen mainScreen] bounds]; _window = [[UIWindow alloc] initWithFrame:frameForWindow]; _rootController = [[UITabBarController alloc] init]; cutViewController *cutController = [[[cutViewController alloc] init] autorelease]; combineViewController *cumbineController = [[[combineViewController alloc] init] autorelease]; NSArray * controllers = [NSArray arrayWithObjects:cutController, cumbineController, nil]; [(UITabBarController*)_rootController setViewControllers:controllers animated:NO]; /* CGRect rect = [_window frame]; UILabel* label = [[UILabel alloc] initWithFrame:rect]; label.text = @"Hello, world!"; [_rootController.view addSubview:label]; [label release]; */ //self.window.rootViewController = self.rootController; [self.window addSubview:_rootController.view]; [self.window makeKeyAndVisible]; return YES; }
objcのスーパーpre記法は、
">|objc|" ←ダブルクォーテーションなし
.
.
.
"||<" ←ダブルクォーテーションなし
2.0には対応していないみたいです。