我添加了 UIWindow 及其工具栏,例如:
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; NSArray * arr = [NSArray arrayWithObjects:@"test1", @"test2", nil]; [[self.window rootViewController] setToolbarItems:arr animated:NO];
没有工具栏出现。
可行吗?谢谢。