【发布时间】:2013-09-09 03:22:56
【问题描述】:
我的 iPhone 应用无法在启动时显示任何内容。 知道这里有什么问题吗?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
HomeViewController *t = [[HomeViewController alloc] init];
[self.window addSubview:t.view];
[self.window makeKeyAndVisible];
// I tried the following in case the problem is my
//view controller but nothing shows up at all
UISegmentedControl *t = [[UISegmentedControl alloc] init];
[self.window addSubview:t];
[self.window makeKeyAndVisible];
}
【问题讨论】:
标签: iphone uiviewcontroller uisegmentedcontrol