4
我使用卡爾庫在我的應用程序日曆視圖,但它顯示在黑色的顏色,但是當我在其他應用程序如新SingleViewApp添加相同的庫,它工作正常,並顯示正常的日曆KalViewController觀點是黑色
我代碼是
kal = [[KalViewController alloc] init];
kal.title = @"NativeCal";
kal.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Today" style:UIBarButtonItemStyleBordered target:self action:@selector(showAndSelectToday)] autorelease];
kal.delegate = self;
dataSource = [[EventKitDataSource alloc] init];
kal.dataSource = dataSource;
// Setup the navigation stack and display it.
navController = [[UINavigationController alloc] initWithRootViewController:kal];
UITabBarController *tabBar = [[UITabBarController alloc]init];
tabBar.viewControllers = [NSArray arrayWithObject:navController];
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.window.rootViewController = tabBar;
[self.window makeKeyAndVisible];
它給了我這個
它與設置backgroundColor屬性有關嗎?你有沒有試過改變它? – 2013-03-12 11:39:38
是的,我試了一下,但沒有任何變化 – 2013-03-12 11:42:32
你可能忘了在應用程序的資源中包含'Kal.bundle'軟件包 - 這件事發生在我前幾天。 – 2013-03-12 11:48:05