The combination of the ring-letter SDK and Apple Watch (2)

Source: Internet
Author: User

This article is mainly about how to write pages on Apple Watch.

You need to work in the "Emwatchocdemo WatchKit App" in the project, the structure of the folder

WatchKit almost not allow direct coding page, can only drag on the storyboard, and for me this habit directly coding page of people, really very painful.

1. Determine the operating process on Apple Watch

First of all, I want a menu page, corresponding to the iphone program, in the case of the Ring letter SDK is not logged in the situation, display the login options, in the case of the Ring Letter SDK login, there are three: sessions, friends, groups.

Then, after clicking on the login option, you can start the iphone for login, because the watch page is too small, no keyboard, the Ring Letter SDK does not support fingerprint or voice login.

Then, after the login operation succeeds, the menu page displays three options, each of which can enter the corresponding page and display the corresponding data.

Finally, go to the chat page, you can display the existing chat record, you can send emoticons.

2. Drag and drop on the storyboard

Click on the Interface.storyboard file under the folder and the corresponding view will appear on the right.

The combination of the ring-letter SDK and Apple Watch (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.