set picture in apple watchface programmatically - watchkit

WatchOS 2 does not allow custom watch faces, but users may create a somewhat custom face by selecting a background picture. Is there a way to set that picture programmatically?

No, it's not possible, there is no API with access to Watch Faces.

Related

WatchKit - TableView with special effect

I would like to create a tableView on an Apple Watch app with a specific effect... You can see it in this video (go to 2 min). This is a different effect than the default one. I don't know how to do this, if anybody can help me by explaining me how I can do this, it would be nice :D
You can use SpriteKit to get such a behaviour on Apple Watch but will have to setup a tableView manually by yourself.

G Suite SAML App Icon

I have added multiple SAML Apps configured in G Suite using built-in options including Atlassian and Salesforce. When selecting the built-in options, I see no way to provide an icon and they do not appear to contain an appropriate icon (they all have a pencil icon). As a result, the app launcher is full of icons that you cannot tell apart. I noticed if I create a custom SAML App then I have an option to upload an icon -- though I see no way to change it after the fact.
Am I missing something or is this expected behavior? If I want custom icons do I need to create custom apps? Is there perhaps an API I can call to configure this?
Try this from the Set up your own custom SAML app:
(Optional) Click Choose file next to the Upload Logo field to upload a PNG or GIF file to serve as an icon. The file size should be
256 pixels square.

WatchKit - Get a touch location on a the screen

I am building an iPhone game with a watch extension. On the watch I would like the user to click on an image and I would like to know where on the image the user clicked. Is this possible with watchkit?
Update: In watchOS 3.0 this is no longer an issue. See answer for details.
With watchOS 3.0, you can now use WKTapGestureRecognizer combined with locationInObject() to get a touch location.
(still no UITouchEvent unfortunately).
This is not possible with the current version of WatchKit. The closest you could come to this is to detect that the user tapped an image/button. I suppose you could break the original image into smaller images/buttons and lay them out as a larger image, but I'm not sure how the performance would be.

WatchKit start with different controllers?

I'm designing my first Apple Watch app. I'd like the first scene displayed on the Apple Watch to be different depending on information in the iOS app. Can I call pushcontrollerwithname or presentControllerWithName inside the initial WatchKit controller's awakeWithContext once I determine the right controller to display? Will the user notice a delay or transition? Is there a better way do do what I want?
Yes, you can do this, one of our apps does this and is live in the app store.

How to access iPhone Simulator's images

Is there any way to access the internal images that the iPhone simulator uses?
For example, if I want to get the original image used for one of the default app icons (e.g. Contacts). This way I could get the highest possible resolution, and examine it for purposes of creating similar icons for my app.
Another example of an image I might want to access is the default icon for a contact:
I'm not asking for a programmatic solution (although that would work), I'm asking for a manual solution, possibly navigating the Simulator's file system using Finder.
You can find the apps at e.g. /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/Applications. The icon of Contacts is at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/Applications/Contacts.app/icon.png or icon#2x.png. But you can't easily read them, as they are in a strange format (it's not standard PNG), you need to convert them. See for example this article or this article.
EDIT: added two more links for iphone icon images.
You dont need to do this.
Just grab a User Interface Kit:
Heres a website you can go to to download the .psd files which you can use for your self for free:
http://webdesignledger.com/freebi
For another library of iphone icons. This one includes the contacts icon:
http://www.iphonestudio.co.uk/page/iphone_icon_gallery
And here are the iphone icons on the main screen made downloadable for your own use.
here are official icons in different sizes.
check the quality of the Photos icon.
wow.
http://www.iconarchive.com/category/application/iphone-icons-by-judge.html
Hope this helps.
Let me know if it did
PK

Resources