0
我無法讓我的iPhone應用程序在啓動時顯示任何內容。 任何想法這裏有什麼不對?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];
}
實際上,這是我的問題,我離開了我的筆尖名稱「HomeViewController.m.xib」的名稱中的「.m」,我將其正確地重命名並解決了問題 – aryaxt 2010-12-05 23:16:42