mmwormhole

Get Unresolved Identifier for MMWormhole in Watch InterfaceController.swift

血红的双手。 提交于 2019-12-01 06:52:36
My Apple Watch project is in Swift. I have used CocoaPods to install MMWormhole, and I created the bridging header as described in these links: http://bencoding.com/2015/04/15/adding-a-swift-bridge-header-manually/ How to call Objective-C code from Swift When I created the bridging header, I target it to my iphone app, and also watch Extension. The bridging header.h, I have this: #import "MMWormhole.h" In my iPhone app View Controller, I have this: import UIKit import Foundation let wormhole = MMWormhole(applicationGroupIdentifier: "group.cocoShareData", optionalDirectory: "wormhole") and

Get Unresolved Identifier for MMWormhole in Watch InterfaceController.swift

青春壹個敷衍的年華 提交于 2019-12-01 05:15:15
问题 My Apple Watch project is in Swift. I have used CocoaPods to install MMWormhole, and I created the bridging header as described in these links: http://bencoding.com/2015/04/15/adding-a-swift-bridge-header-manually/ How to call Objective-C code from Swift When I created the bridging header, I target it to my iphone app, and also watch Extension. The bridging header.h, I have this: #import "MMWormhole.h" In my iPhone app View Controller, I have this: import UIKit import Foundation let wormhole

Refresh NSManagedObjectContext

只谈情不闲聊 提交于 2019-11-30 18:25:12
问题 I am writing a WatchKit extension for an iPhone application. I share Core Data using App Groups. This is working, the data is shared. When a new NSManagedObject is created using watch I send a notification to the iPhone app that a new object was created. To do that I use MMWormhole . The iPhone app receives the MMWormhole notification and now I have to do the last step - refresh NSManagedObjectContext . How can I do it? I was trying to forward notification of