开发者

Is there any way we can add a UIbutton on the navigation bar when the full image shows

开发者 https://www.devze.com 2023-03-28 15:39 出处:网络
Is there any possibility to add a UIButton on navigation bar of the full image display in the Three20 open source.

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];    
0

精彩评论

暂无评论...
验证码 换一张
取 消