watchkit

How can you download WatchKit? [closed]

狂风中的少年 提交于 2019-12-02 21:19:46
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Does anyone know when WatchKit will be available for download for iOS developers? Will Xcode 6 include an emulator to allow for a Apple Watch app to be created/tested on a Mac? Update: 11/18/14 - WatchKit is officially available on apple's website . You must download the latest version of Xcode from the developer center. WatchKit allows developers to build Apple Watch apps. According to apple, Apple Watch apps using the

iOS7 and Apple Watch

不问归期 提交于 2019-12-02 20:34:20
I have a app with the minimum iOS target iOS7. I am considering in add some extra features with the apple watch. Theres is any option to maintain the iOS7 as the minimum target and still add support for apple watch if the app is running on a iOS 8? Something like the extensions/widgets of the iOS8. Thanks in advance You can set your deployment target to iOS7.x and make sure you build against iOS8.2 SDK. You will need to set the frameworks as optional (weak linking) in your build settings and perform run time checks to ensure you don't attempt anything with them on an iOS7.x device. Optional

Pass data from Parse tableview to WatchKit

非 Y 不嫁゛ 提交于 2019-12-02 20:33:04
问题 I'm using Parse to create this table view , and am trying to figure out how to get the table data, so I can pass it into the WatchKit InterfaceController . (Would I need to query Parse to somehow get and store the data in an array which I would then be able to call from the WatchKit InterfaceController awakeWithContext ?) Here is what I have, let me know if I can add anything that would be helpful: TableVC.m : - (id)initWithCoder:(NSCoder *)aCoder { self = [super initWithCoder:aCoder]; if

How to automatically set the version and build number of a Watchkit app target

喜欢而已 提交于 2019-12-02 20:23:48
The version and build number (or version and short version) of a Watchkit app and extension have to be set to the same value as the containing app. I use environment variables to set the apps version in the Info.plist dynamically at build time. That also works fine for the Watchkit extension, but not for the Watchkit app. The environment variables I use have to be provided in the plist for the main app and extension without ${} (for variable ${VERSION} I set VERSION ). if I do the same for the Watchkit app, it is taking the string itself, not the value. If I provide it with dollar & brackets

How to tell if current running Apple Watch size/dimension is 38mm or 42mm?

♀尐吖头ヾ 提交于 2019-12-02 19:26:12
We know that there are two screen sizes for Apple Watch: 38mm and 42mm. The WKInterfaceDevice class provides a readable property named screenBounds . I wrote an extension for WKInterfaceDevice , trying to add a method to detect current device type. import WatchKit enum WatchResolution { case Watch38mm, Watch42mm } extension WKInterfaceDevice { class func currentResolution() -> WatchResolution { let watch38mmRect = CGRectMake(0.0, 0.0, 136.0, 170.0) let watch42mmRect = CGRectMake(0.0, 0.0, 156.0, 195.0) let currentBounds = WKInterfaceDevice.currentDevice().screenBounds if CGRectEqualToRect

Render a line graph on Apple Watch using watchOS 2

倖福魔咒の 提交于 2019-12-02 18:36:53
I am trying to render a line/step graph on Apple Watch using watchOS 2. Unlike iOS 9, watchOS 2 doesn't support Quartz. It only supports Core Graphics. I tried writing some code to draw a line graph but I am getting an error "CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update." Following is the piece of code I used:

WatchKit : handleWatchKitExtensionRequest multiple instances

妖精的绣舞 提交于 2019-12-02 17:30:21
问题 So I have a parent app that logs in to a server, creates a user etc. I then use handleWatchKitExtensionRequest from the WatchApp to access the parent app but everything is null. My question is, does handleWatchKitExtensionRequest get run in a different instance to the parent app? I read somewhere it does but I just need this confirmed. Thanks 回答1: If handleWatchKitExtensionRequest returns nothing it means that the passed reply is never called. This is most probably due to application

How can I guarantee unique entries in a Core Data store in a shared app container used by both the host app and an extension?

最后都变了- 提交于 2019-12-02 17:11:16
To ask my question effectively, let's first consider the exact scenario I'm facing: General Setup A host iOS 8 app. One or more iOS 8 extensions (WatchKit, Share, etc.) bundled with the host app. The host app and all extensions share the same Core Data SQLite store in the shared app group container. Each app/extension has its own NSPersistentStoreCoordinator and NSManagedObjectContext. Each persistent store coordinator uses a persistent store that shares the same SQLite resources in the group container as all the other persistent stores. The app and all extensions use a common codebase for

WatchKit Extension not working under CocoaPods

﹥>﹥吖頭↗ 提交于 2019-12-02 12:31:40
Using iOS-8.3, Xcode-6.3.1 and MacOS-10.10.3 - The CocoaPods (v0.37.1) installation of the RealmSwift (v0.92.3) described here and here basically works, except the WatchKit Extension does not find any Realm keywords. My Podfile looks as follows: xcodeproj 'MyApp.xcodeproj' workspace 'MyApp.xcworkspace' platform :ios, '8.3' source 'https://github.com/artsy/Specs.git' source 'https://github.com/CocoaPods/Specs.git' use_frameworks! def shared_pods pod 'RealmSwift', '>= 0.92.3' end target 'MyApp' do shared_pods end target 'MyAppTests' do shared_pods end target 'MyApp WatchKit Extension' do shared

WatchKit : handleWatchKitExtensionRequest multiple instances

回眸只為那壹抹淺笑 提交于 2019-12-02 11:13:51
So I have a parent app that logs in to a server, creates a user etc. I then use handleWatchKitExtensionRequest from the WatchApp to access the parent app but everything is null. My question is, does handleWatchKitExtensionRequest get run in a different instance to the parent app? I read somewhere it does but I just need this confirmed. Thanks If handleWatchKitExtensionRequest returns nothing it means that the passed reply is never called. This is most probably due to application.didFinishLaunchingWithOptions runs into an error when the app is launched in background mode. I had a similar issue