从我的iPhone应用程序发送图片到手表 [英] Send a picture from my IPhone App to the watch

查看:154
本文介绍了从我的iPhone应用程序发送图片到手表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的应用程序。这向我展示了一张图片。这张图片我想发送到Apple手表。那我怎么能这样做呢?

对不起,我的编程知识不足以从apple.developer网站上学到它。我试着用handlewatchkitextensionrequest等等,但没有任何效果。

所以我的口渴问题是,我不知道,这是一眼还是通知问题?

在这种情况下我必须使用共享数据吗?

我也尝试过NSUserdefaults但它没有用。

必须有一个简单的方法来发送一个简单的图片到手表。我无法相信coredata或其他任何东西都这么难。



任何人都可以用一些示例代码帮助我吗?

I have an existing app. This shows me among other things a picture. This picture i want to send to the Apple watch. So how can i do this?
I'm sorry, thirst my programming knowledge isn't good enough to learn it from the apple.developer site. I tried something with handlewatchkitextensionrequest and so on, but nothing works.
So my thirst problem is, that i don't know, is this a glance or a notification problem?
Must i work with shared Data in this case?
I also tried NSUserdefaults but it didn't work.
There must be a simple way to send a simple picture to the watch. I can't believe that it is so hard with coredata or anything else.

Can anyone help me please with some examplecode?

推荐答案

最好从 Apple Watch编程指南开始通知。



我会推荐的Ray Wenderlich教程swift-getting-started>教程Apple样品Lister



您必须了解手表是另一个需要一些特殊代码进行交互的显示器。这些ViewControllers由Watchkit提供 - 其余是样板代码。它的工作原理就像记录在案一样!!!
Best is you start in the Apple Watch Programming Guide for Notification.

I would recommend the tutorial by Ray Wenderlich for Apple Watch or the Apple sample Lister.

You must understand that the watch is another display which needs some special code for interacting. These ViewControllers are provided by the Watchkit - rest is boilerplate code. It works like it is documented!!!


这篇关于从我的iPhone应用程序发送图片到手表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆