Changes

Jump to: navigation, search

A WatchKit Table Tutorial

42 bytes added, 20:03, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_WATCHKITwatchos2_upgrade</googlehtmlet>
}
</pre>
<googlehtmlet>BUY_WATCHKITwatchos2_upgrade</googlehtmlet>
The method identifies the number of elements in the string array and uses that value to set the number of rows within the table while specifying the row type as MyRowController. The code then iterates through each row in the table setting image and label properties using the two arrays as the data sources for the content to be displayed.
<googlehtmlet>BUY_WATCHKITwatchos2_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu