Three problems TTLauncher

So, I am having some problems with my implementation of Triple20 TTLauncherView. I use their code, not the plug (although I heard about the rodmaz version), and I can't get it to work correctly. This is what my app looks like.

alt text http://img709.imageshack.us/img709/8792/screenshot20100715at409.png

I deleted the icon image, this is not a problem. The problem is that there is no navigation bar at the top at all, and I also think that the white bar at the bottom, which seems to have the same dimensions as the Nav panel. I spent quite a lot of time looking through their code and cannot figure it out at all. It appears that their navigation bar (as seen from the application in the directory app) comes from TTTableViewController or something more. However, my application launches as a Facebook application, not in a spreadsheet, but in TTLauncherView. So ... how do I get the navigation bar in my TTLauncher view if it goes "App Delegate -> subclass of TTLauncherView"

Thank you for your help!

Edit:

Added code that I used. I put this in my application delegate, wrapping my first view using the UINavigation controller, and it worked the way I wanted!

MainViewController *aController = [[MainViewController alloc] initWithNibName:nil bundle:nil]; //my Main view
self.mainViewController = aController;
[aController release]; //release for Memory Management
self.mainViewController.view.frame = [UIScreen mainScreen].applicationFrame;

UINavigationController *navigationController = [[UINavigationController alloc] init];
[navigationController pushViewController:self.mainViewController animated:NO]; //Gets the main view on the screen

[window addSubview:navigationController.view];
+3
source share
1 answer

You simply drag the view using the navigation bar before clicking on the new view. As an example, here is a snippet of my code in which I present a modal view controller with a navigation bar.

- (IBAction) showNewNavView: (id) sender 
{

    // Present it as a modal view and wrap the controller in a navigation controller to provide a navigation bar for the Edit and Save buttons
    ModalViewController *addController = [[ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil];
    addController.delegate = self;

    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addController];
    navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

    [self presentModalViewController:navigationController animated:YES];

    [navigationController release];
    [addController release];

}

If you want to add any buttons or set a title, you need to do this in the method of viewDidLoadthe kind that you click (i.e. the view of your TTLauncher)

+2
source

Source: https://habr.com/ru/post/1754884/


All Articles