简体   繁体   中英

Difference between custom classes at WatchKit or WatchKit Extension?

Where is the different if I put my custom classes for the interface storyboard at the WatchKit or the WatchKist extension. (By example myInterfaceController)

在此处输入图片说明

You should only have WKInterfaceController classes in your WatchKit extension target. You will not be allowed to have any code in your WatchKit app. The folder that the files are doesn't really matter, what matters is what target they are in. Make sure all WKInterfaceController classes are in the WatchKit extension target.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM