Can I create a WatchKit app without a storyboard (entirely in code)?

前端 未结 1 1283
渐次进展
渐次进展 2020-12-18 21:42

My team is currently working on an iOS application in which we don\'t use storyboards at all. We create the UI in code instead. So for consistency\'s sake it would be great

相关标签:
1条回答
  • 2020-12-18 21:49

    If you read the WatchKit programming guide you will see that you app is actually executing on the user's iPhone and the app sends information to be displayed to the watch by WatchKit.

    As there is none of your code executing on the watch itself, you can't perform programmatic layout - WatchKit uses a Storyboard to provide the layout and render the information provided by your app running on the iPhone.

    Apple has said that it will be possible to develop native Watch applications in the future, so it may be possible then.

    0 讨论(0)
提交回复
热议问题