我有一个iPhone
的应用程序,它有一个故事板.现在我也想提供一份iPad
的申请.所以我问我有没有什么功能可以帮我把我的iPhone
故事板转换成iPad
故事板.
具体地说,就是:
Is there a similar function or is there only the manual way ?个
我有一个iPhone
的应用程序,它有一个故事板.现在我也想提供一份iPad
的申请.所以我问我有没有什么功能可以帮我把我的iPhone
故事板转换成iPad
故事板.
具体地说,就是:
Is there a similar function or is there only the manual way ?个
我找到了一种解决办法:
复制您的iPhone-Storyboard并将其重命名为MainStoryboard_iPad.storyboard
关闭Xcode,然后在任何文本编辑器中打开此文件.
搜索targetRuntime="iOS.CocoaTouch"
并将其更改为targetRuntime="iOS.CocoaTouch.iPad"
将MainStoryboard_iPad.Storyboard中的代码从:
<simulatedScreenMetrics key="destination" type="retina4"/>
至
<simulatedScreenMetrics key="destination"/>
现在保存所有内容并重新打开Xcode.iPad-Storyboard与iPhone-file的内容相同,但所有内容都可能被打乱.
这为我节省了几个小时-希望这能帮助你