2013-03-12 48 views
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]; 

它给了我这个

enter image description here

+0

它与设置backgroundColor属性有关吗?你有没有试过改变它? – 2013-03-12 11:39:38

+0

是的,我试了一下,但没有任何变化 – 2013-03-12 11:42:32

+1

你可能忘了在应用程序的资源中包含'Kal.bundle'软件包 - 这件事发生在我前几天。 – 2013-03-12 11:48:05

回答

2

的问题是,你已经忘了,包括在0123包含Kal的全部资源的文件包含在您的项目资源中。简单地将这个包拖入你的Xcode项目应该能够做到。