Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Am i implementing TTLauncher correctly?

I was playing around with the TTCatalog example, just tried adding a url with a url mapped in the appdelegate:

  [[[TTLauncherItem alloc] initWithTitle:@"Button 1"
                           image:@"bundle://Icon.png"
                           URL:@"tt://photoTest1" canDelete:YES] autorelease],

For some reason, it's not doing anything at all when you click on it.

like image 537
Frank Avatar asked Dec 12 '25 07:12

Frank


1 Answers

In case you haven't been able to figure this one out yet, my guess is that you are not doing anything in launcherView: didselectitem:

Just create a TTNavigator object inside the method and then call openURLAction. For example

(void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item 
{
    TTNavigator *navigator = [TTNavigator navigator];
    [navigator openURLAction:[TTURLAction actionWithURLPath:item.URL]];
}
like image 124
Robert Lowery Avatar answered Dec 15 '25 06:12

Robert Lowery



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!