Apple Watch, WatchKit Extension and main application
问题 There is main application with logic and we extend app to Apple Watch. After adding target xCode creates 2 more applications: extension with code and watch kit application. Question: How code from extension can reuse logic of ready and already made main iOS app? How extension app can communicate with main App and send commands. 回答1: To communicate to the containing iPhone app you can use (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *replyInfo, NSError