Can I create a WatchKit app without a storyboard (entirely in code)?
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 if we could create a Watch App target entirely in code.
However, both the “Getting started with WatchKit” video and WatchKit Framework Reference
mention that you need a storyboard for the Watch App target. Furthermore, in
init method is marked as unavailable:
- (instancetype)init NS_UNAVAILABLE;
So is it really impossible to create a Watch App without using storyboards? If so, what are the reasons behind this decision? I mean, we can create an iPhone / iPad app entirely in code, so why is it different for the Watch?
- MinimumOSVersion error while submitting Apple Watch app
- Launch host app from watch app
- Running Apple Watch in iOS simulator issue
- Binary Rejection - Invalid Watchkit Support
- No matching provisioning profiles found for WatchKit extension when submitting to App Store
- Pass data from Parse tableview to WatchKit
Solutions Collect From Internet About “Can I create a WatchKit app without a storyboard (entirely in code)?”
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.
- Fast Enumeration With an NSMutableArray that holds an NSDictionary
- How can I draw and rotate an Arrow at an Orientation in 3D Space?
- iOS Localization – Updating Localizable.strings with just new strings
- drawRect over subviews?
- How to print the content of a variable type Data using swift?
- How do I pass variables between view controllers?
- How do I associate file types with an iPhone application?
- Can't subclass UIColor?
- get the array index in for statement in objective-c
- Calling delegate function from AppDelegate not working
- Having trouble adding objects to NSMutableArray in Objective C
- Unknown reason to receive Memory Warning
- Using CFNotificationCallback in Swift, or, @convention(c) blocks in Swift
- HttpListener with HTTPS on MonoTouch
- NSAttributedString tail truncation in UILabel