mirror of
https://github.com/samsonjs/5by5Browser.git
synced 2026-03-25 09:05:50 +00:00
title of master navigation controller is Shows on iPad
This commit is contained in:
parent
1496225bc5
commit
332afe9392
2 changed files with 8 additions and 5 deletions
Binary file not shown.
|
|
@ -23,14 +23,17 @@
|
|||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
self.title = @"5by5";
|
||||
[self.navigationItem setBackBarButtonItem: [[UIBarButtonItem alloc] initWithTitle: @"Shows"
|
||||
style: UIBarButtonItemStyleBordered
|
||||
target: self.navigationController
|
||||
action: @selector(popViewControllerAnimated:)]];
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
|
||||
self.title = @"Shows";
|
||||
self.contentSizeForViewInPopover = CGSizeMake(320.0, 600.0);
|
||||
}
|
||||
else {
|
||||
self.title = @"5by5";
|
||||
[self.navigationItem setBackBarButtonItem: [[UIBarButtonItem alloc] initWithTitle: @"Shows"
|
||||
style: UIBarButtonItemStyleBordered
|
||||
target: self.navigationController
|
||||
action: @selector(popViewControllerAnimated:)]];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue