WKInterfaceTable for Apple Watch

This is a discussion on WKInterfaceTable for Apple Watch within the Apple Watch Talk Forum forums, part of the category; - (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"]; } ...

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Feb 2015
    Posts
    1
    Member #
    7874

    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];
    }
    }

  2. Ads

    Posts
    Many

Remove Ads

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. eBay is planning an Apple Watch app
    By sparkyscott21 in forum Apple Watch
    Replies: 0
    Last Post: 01-29-2015, 01:32 PM
  2. Replies: 0
    Last Post: 01-14-2015, 12:49 PM
  3. You can already buy a fake Apple Watch for just $35
    By sparkyscott21 in forum Apple Watch
    Replies: 0
    Last Post: 01-08-2015, 11:46 AM
  4. Welcome to the Apple Watch Talk Forum
    By Col.bris in forum Apple Watch Talk Forum
    Replies: 0
    Last Post: 09-09-2014, 10:00 PM

Contact Us
Back to top