The app has a simple code for watch

Source: Internet
Author: User

---restore content starts---

1. Drag the control into the WatchKit app's storyboard and place it on the group when multiple controls are needed

2. Interface jump There are three ways Push/pop,present/dismiss,next page (similar to page control)

3. When the main view is a paging controller, the hierarchical view cannot be push, the master view is a rating controller, and the paging view cannot be push

4.Watch table must be written in Interfacecontroller, otherwise it will not be implemented

In the storyboard dragged into the Table,rowcontroller is inherited nsobject, we need to write an inheritance NSObject class, in Interfacecontroller, pull into Table,row Controller ID to match the name of the NSObject

Set to size in Tabel's properties

Create the UI in Interfacecontroller,

[self.mytable setnumberofrows://number of rows withrowtype:@ "row controller name"];

Refreshing the data requires writing it yourself and refreshing it with the UI

Click on the Rowcontroller method

-(void) Table: (wkinterfacetable *) Table Didselectrowatindex: (Nsinteger) RowIndex;

Import inside the Rowcontroller

#import <WatchKit/WatchKit.h>

Drag the controls in the table into the

Assigning values in Interfacecontroller

---restore content ends---

The app has a simple code for watch

Related Article

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.