apple-watch

iWatch: WKInterfaceLabel is it possible to stop text from being cut off with “…” at the end of a label?

笑着哭i 提交于 2019-12-05 20:04:44
The text in my WKInterfaceLabel is way too long and causes the text to be cut off with dots at the end. I know for UILabel for iOS you can easily resolve this issue by enabling clip mode. I don't believe there is any way for me to resolve this for watchkit. This is going to force me to use an Image if I can't prevent the text from being cut off. Any tips or suggestions is appreciated. You have a couple options depending on how you want the view to respond. In your interface story board select your label and open the attributes inspector. Your first option is to change the font to a smaller

How can I edit top status bar at AppleWatch?

南笙酒味 提交于 2019-12-05 16:53:24
I'm beginning with WatchKit and I would like to know hoy to edit the aspect of topbar in a AppleWatch app. I would like to change the color and also to hide it in some of my views because I want to focus my user to perform one action. Thanks! It is impossible to edit the status bar appearance. There are some strong restrictions: Status bar cannot be hidden There are not ability to modify the black background You cannot add or modify the back button or another image The only thing you can do is to change the title color using tint color in your storyboard and the text both of through storyboard

How to share data between iPhone and Apple Watch using groups?

北城以北 提交于 2019-12-05 14:31:58
i am new to Watchkit development and unable to find solution to share data between iPhone and iWatch, please help me i am looking to share data using groups. Aadil Keshwani We can pass the data between iPhone & iWatch using groups. Basically iWatch can not do any processing and we need to share the data. We can share data using the NSUserDefaults . But for that you need to enable Appp Groups from capabilities section in both your project target and your iwatch app target, as showed below Below is the sample code to achieve that. In your viewController or appDelegate file add following code

Change App ID of Apple Watch App

怎甘沉沦 提交于 2019-12-05 11:41:21
I have recently transferred some of my apps from one account to another. When I did this the App IDs also transferred. However, the App IDs did not transfer for the WatchKit Apps or WatchKit Extensions. I have tried to upload and after the upload has completed and appears in iTunes Connect Prerelease I receive an email about CFBundleIdentifier Collision . I then tried to change the App ID for the Apple Watch app and see this error when uploading: Attempting to change bundle identifier from com.domain.myapp.watchkitapp to com.domain.myapp.watchkitapp2 is disallowed for bundle MyApp.app/PlugIns

Xcode 7 Install of Apple Watch Application never finished

*爱你&永不变心* 提交于 2019-12-05 11:39:29
I want to try the new Apple Watch OS2. Opened my existing project Added a target Changed bundle Identifiers to remove error messages The Watch App never launches. I get this error message in Xcode after around 5 minutes. I didn't add any Swift code yet. All I did was add the target and did the above steps. Anyone else facing similar situations? I was able to finally get the app on the simulator by going into the Apple Watch app on the iPhone simulator and toggle the switch back and forth. Experienced same issue and this worked : make sure watch simulator is selected go to Hardware menu and

Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

人盡茶涼 提交于 2019-12-05 08:01:45
Tried a public sample code project and my own project. Observe no problem with watchOS 1. watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode. Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode. Test on 10.10, 10.11. Steps to Reproduce: Set up the Provisioning files on build settings, watchOS 2 environment and etc. Go to the scheme on the left top of the Xcode 7.0 beta and choose the iPhone and Apple

How can I avoid the error “Error Launching 'AppName' WatchKit Extension” when trying to build and run a WatchKit Extension on an actual Apple Watch?

风流意气都作罢 提交于 2019-12-05 07:53:10
When I try to build and run a WatchKit extension on my real Apple Watch, I sometimes get the following error message: I've tried to build the parent application for the iPhone and then again for my WatchKit app but I still get the error message. Does anyone know what causes this error message and how to deal with it? This seems to happen when it takes a long time to install the WatchKit App on the actual watch and Xcode times out waiting for the process to start due to the long install time. It can take a long time for two reasons: It sometimes takes a while for the Watch to "notice" the App

AppleWatch Messages URL works hard coded but not with variables

帅比萌擦擦* 提交于 2019-12-05 07:30:36
TLDR When I hard code phone numbers into a URL it opens in watch messages correctly, but when I use a variable string with the numbers typed in exactly the same way inside of it, it doesn't. Example: NSURL(string: "sms:/open?addresses=8888888888,9999999999,3333333333&body=Test") Above code works but below code doesn't: let hardCode = "8888888888,9999999999,3333333333" NSURL(string: "sms:/open?addresses=\(hardCode)&body=Test") FULL DETAILS: I am making a URL from variables to open messages on the Apple Watch with pre-filled contents. I am getting the phone numbers from the contact book and

Is Apple Watch detected by an RFID reader?

元气小坏坏 提交于 2019-12-05 06:09:22
I'm new to NFC technology. Apple hasn't yet opened NFC for developers. Does this mean that 3rd party application can't write data or trigger an action on the device? But is it possible to identify the watch using an RFID reader similar to a smart card? This is possible using a Apple Wallet Pass with NFC support. These require special approval from Apple but allow an Apple Watch or iPhoneSE/6/6s/6+/7/7+ to present a unique identifier to an NFC reader. Privacy may be a concern but the Value Add Services (VAS) protocol that Apple opted for in their NFC implementation allows for the NFC reader to

Launch Watch App into middle view

大憨熊 提交于 2019-12-05 03:30:32
Basically, my app is laid out in the page format and I would like it to launch into the middle of the three pages. There is no way of setting a previous page segue, so I have been trying to do it in code. I have the main view set to the first view, and I have tried a variety of methods to segue to the middle view as soon as the app is launched. Here is the two ways I tried: if segueCheck == true { self.pushControllerWithName("budget", context: self) self.presentControllerWithName("budget", context: self) segueCheck = false } The first presents the view, but as a completely separate view, and