Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Set up the toolbar
- [self.navigationController setToolbarHidden:NO];
- UIBarButtonItem *bestButton = [[UIBarButtonItem alloc] initWithTitle:@"Best" style:UIBarButtonItemStylePlain target:self action:nil]; //replace action later
- UIBarButtonItem *favoritesButton = [[UIBarButtonItem alloc] initWithTitle:@"Favorites" style:UIBarButtonItemStylePlain target:self action:nil];
- UIBarButtonItem *allButton = [[UIBarButtonItem alloc] initWithTitle:@"All" style:UIBarButtonItemStylePlain target:self action:nil];
- NSArray *array = [[NSArray alloc]initWithObjects:bestButton,favoritesButton,allButton,nil];
- [allButton release];
- [favoritesButton release];
- [bestButton release];
- [self.navigationController setToolbarItems:array];
- [array release];
- [self.window makeKeyAndVisible];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement