Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to launch a TTTableView based view with TTLauncherView?
    primarykey
    data
    text
    <p>I'm very newbie with Three20. I'm trying to make an TTLauncherView based interface, without success for now.</p> <p>My LauncherView contains a button, mapped to an URL. When I click on this button, I want a TTTableView based to be displayed on screen. But I have nothing.</p> <p>Here is a piece of my AppDelegate code :</p> <pre><code>[map from:@"tt://rank" toViewController:[RankController class]]; </code></pre> <p>And the LauncherView code (a piece, too) :</p> <pre><code>launcherView.pages = [NSArray arrayWithObjects: [NSArray arrayWithObjects: [[[TTLauncherItem alloc] initWithTitle:@"Rank" image:@"bundle://defaultMusic.png" URL:@"tt://rank" canDelete:YES] autorelease],nil], nil]; </code></pre> <p>The button is here, no problem. But when clicked, it never opens my RankController class. Here is its source :</p> <pre><code> - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { self.title = @"Rank"; self.variableHeightRows = YES; } return self; } - (void)dealloc { [super dealloc]; } - (void) createModel { NSLog(@"rank"); self.dataSource = [TTSectionedDataSource dataSourceWithObjects: @"Items", [TTTableTextItem itemWithText:@"Item n°1" URL:nil], [TTTableTextItem itemWithText:@"Item n°2" URL:nil], [TTTableTextItem itemWithText:@"Item n°3" URL:nil], [TTTableTextItem itemWithText:@"Item n°4" URL:nil], [TTTableTextItem itemWithText:@"Item n°5" URL:nil], nil]; } </code></pre> <p>I tried to proceed the same way that the examples packaged in Three20, so what am I doing wrong ?</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload