开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜