diff options
Diffstat (limited to 'Classes/PhotoViewController.m')
-rw-r--r-- | Classes/PhotoViewController.m | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Classes/PhotoViewController.m b/Classes/PhotoViewController.m index 35e58ca..6874df4 100644 --- a/Classes/PhotoViewController.m +++ b/Classes/PhotoViewController.m @@ -47,6 +47,54 @@ [customItem release]; [flex release]; [flex2 release]; + +// UIBarButtonItem *infoDarkButtonType = [[UIButton buttonWithType:UIButtonTypeInfoLight] retain]; +//// infoDarkButtonType = CGRectMake(0.0, 0.0, 25.0, 25.0); +//// infoDarkButtonType.backgroundColor = [UIColor clearColor]; +// [infoDarkButtonType addTarget:self action:@selector(infoButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; +// UIBarButtonItem *infoButton = [[UIBarButtonItem alloc] initWithCustomView:infoDarkButtonType]; +// +// [self.navigationItem.leftBarButtonItem setTitle:@"back"]; + +// self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"back" +// style:UIBarButtonItemStyleBordered +// target:nil +// action:nil]; + +// self.navigationItem.rightBarButtonItem = [UIButton buttonWithType:UIButtonTypeInfoLight]; +// [infoDarkButtonType release]; +// [infoButton release]; +} + +//- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { +// [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; +// self.navigationItem.backBarButtonItem.title = @"back"; +//} + +- (void)updateChrome { + //[self updateTitle]; +// if (![self.previousViewController isKindOfClass: [TTThumbsViewController class]]) { +// if (_photoSource.numberOfPhotos > 1) { +// self.navigationItem.rightBarButtonItem = [[UIBarButtonItem +// alloc] +// initWithTitle:TTLocalizedString(@"See All", @"See all photo +// thumbnails") +// style:UIBarButtonItemStyleBordered target:self action:@selector +// (showThumbnails)]; +// } else { +// self.navigationItem.rightBarButtonItem = [UIButton buttonWithType:UIButtonTypeInfoLight]; +// } +// } else { +// self.navigationItem.rightBarButtonItem = [UIButton buttonWithType:UIButtonTypeInfoLight]; +// } + [super updateChrome]; + self.navigationItem.backBarButtonItem.title = @"back"; + //self.navigationItem.rightBarButtonItem = [UIButton buttonWithType:UIButtonTypeInfoLight]; +// UIBarButtonItem* playButton = [_toolbar itemWithTag:1]; +// playButton.enabled = _photoSource.numberOfPhotos > 1; +// _previousButton.enabled = _centerPhotoIndex > 0; +// _nextButton.enabled = _centerPhotoIndex < +// _photoSource.numberOfPhotos-1; } -(void)action:(id)sender{ |