Ida*_*led 3 xcode objective-c storyboard ios xcode5
我最近从开发人员的网站下载了新的xCode,在我看的每个地方,我找不到如何在没有故事板的情况下打开项目的解决方案.
这对我很重要,因为我想让我的应用程序在iOS 4.3上运行.
我这样做的方法是在旧版本中打开项目,然后在新版本中打开它.但必须有另一种方式.
谢谢!
Bho*_*opi 15
删除故事板的步骤
1)从项目中删除Main.storyboard文件.
2)为控制器添加带有xib的新文件,如果在构建阶段未在编译源中添加,则手动添加.
3)从plist中删除主故事板文件基本名称.
4)更改appdelegate didFinishLaunchingWithOptions文件并添加:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] ;
[self.window makeKeyAndVisible];
Run Code Online (Sandbox Code Playgroud)
就像 :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] ;
// Override point for customization after application launch.
TestViewController *test = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:test];
self.window.rootViewController = nav;
[self.window makeKeyAndVisible];
return YES;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6949 次 |
| 最近记录: |