开始制作我的应用程序,现在需要故事板 [英] Started making my app, now need story boards

查看:116
本文介绍了开始制作我的应用程序,现在需要故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此制作我的第一个应用程序并且它只是一个单一的视图应用程序,但现在我意识到启用故事板功能可能很有用(现在我知道我可以用它做什么)。我开始时没有勾选它。

So istarted making my first app and it's just a single view application but now i've realised it might be useful to have the story board feature enabled (now that I know what i can do with it). I didn't tick it when I started.

启用它为时已晚?将我的应用程序移动到启用了故事板的文件的最简单方法是什么?

Is it too late to enable it? What's the easiest way to move my app into a storyboard enabled file?

谢谢

推荐答案

不,为时不晚

右键单击您的代码并选择新文件 - >在 IOS - > 用户界面 - > 故事板 - > Iphone - >另存为故事板

Right click on your code and choose New File -> under IOS -> User Interface-> Storyboard -> Iphone -> Save As Storyboard

现在找到您的Info.plist(它应该在您的资源或支持的文件中)右键单击并选择添加行查找主故事板文件基本名称 on value Storyboard

Now find your Info.plist (it should be in your resources or supported files) right click and choose add row find Main storyboard file base name on value Storyboard

在你的应用中,didfinishlaunchingwithoptions返回yes

In your app didfinishlaunchingwithoptions return yes

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

        return YES;

}

现在转到故事板并添加Uiviewcontrollers,导航控制器等...

Now go to your storyboard and add Uiviewcontrollers, navigation controllers etc...

确保您的第一个uiviewcontroller设置为初始视图控制器

Make sure your first uiviewcontroller is set to initial view controller

这篇关于开始制作我的应用程序,现在需要故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆