升级了Xcode6以后会自带一个故事版storyboard, 有时候会很方便, 但是如果有时候不需要这个storyboard, 想用自定义的复杂的控件的话, 需要这样做:
1. 把info.plist文件中的Main storyboard file base name 的value值删掉, 置空就行
2. 把.storyboard文件删掉, 其实不删也可以, 不过没用的东西还是删掉好
3. 在AppleDelegate的didFinishLaunchingWithOptions中加上代码:
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
ViewController *vc = [[ViewController alloc] init];
self.window.rootViewController = vc;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
中间就是自定义的viewController了, 好了可以了.