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)