Is there any possibility to add a UIButton on navigation bar of the full image display in the Three20 open source. o开发者_如何学Gor when the thumbs of images are displayed then the button can be added or not.
It could be done with something like this...
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
[myButton setImage:[UIImage imageNamed:@"myButtonImage"] forState:UIControlStateNormal];
[myButton setTarget: ....];
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:myButton];
self.navigationItem.rightBarButtonItem = barButton;
[barButton release];
精彩评论