Results 1 to 1 of 1
Thread: WKInterfaceTable for Apple Watch
-
02-04-2015, 02:33 AM #1
WKInterfaceTable for Apple Watch
- (instancetype)initWithContext:(id)context
{
self = [super initWithContext:context];
if (self)
{
// Initialize variables here.
// Configure interface objects here.
NSLog(@"%@ initWithContext", self);
self.arrayTitles=@[@"Frag",@"Crab",@"Spider",@"Ant",@"Craby",@"Snail" ,@"Snoop",@"Fishal"];
}
return self;
}
- (void)willActivate
{
// This method is called when watch view controller is about to be visible to user
NSLog(@"%@ will activate", self);
[self.tblView setNumberOfRows:[self.arrayTitles count] withRowType:@"MainLevel"];
//[self.tblView setNumberOfRows:[self.arrayImage1 count] withRowType:@"MainLevel"];
//[self.tblView setNumberOfRows:[self.arrayImage2 count] withRowType:@"MainLevel"];
for (NSInteger index=0 ; index<[self.arrayTitles count]; index++)
{
NSString* title=[self.arrayTitles objectAtIndex:index ];
PacksTable *rows=[self.tblView rowControllerAtIndex:index];
[rows.lblLevelName setText:title];
}
}
-
02-04-2015 02:33 AM
Remove Ads
Similar Threads
-
eBay is planning an Apple Watch app
By sparkyscott21 in forum Apple WatchReplies: 0Last Post: 01-29-2015, 01:32 PM -
Apple Watch iPhone ‘Companion’ app revealed w/ new Watch features, monograms
By sparkyscott21 in forum Apple WatchReplies: 0Last Post: 01-14-2015, 12:49 PM -
You can already buy a fake Apple Watch for just $35
By sparkyscott21 in forum Apple WatchReplies: 0Last Post: 01-08-2015, 11:46 AM -
Welcome to the Apple Watch Talk Forum
By Col.bris in forum Apple Watch Talk ForumReplies: 0Last Post: 09-09-2014, 10:00 PM