summaryrefslogtreecommitdiffstats
path: root/Classes/PhotoViewController.m
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-30 09:25:32 -0400
committermatt handler <matt.handler@gmail.com>2011-04-30 09:25:32 -0400
commite993e7ba4e1107a875afeec33292b9d01c52035b (patch)
tree059ff9c8032b1a6a0dc18781e8eb388f9a8ea58f /Classes/PhotoViewController.m
parent869398ebfb18702b9de42f723ff8072b116eb04f (diff)
downloadpiccast-app-master.tar.gz
piccast-app-master.zip
added loading animation, piccast color title, navigation controllers for browse and search, uicolor orange and yellow, custom headers for search view, redid loading screen, fixed backgroundGradient, background white for topic table, etc etc etc gayHEADmaster
Diffstat (limited to 'Classes/PhotoViewController.m')
-rw-r--r--Classes/PhotoViewController.m48
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{