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 WKInterfaceObject.h
the 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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…