Iphone 当完整图像显示时,我们是否可以在导航栏上添加UIbutton

Iphone 当完整图像显示时,我们是否可以在导航栏上添加UIbutton,iphone,objective-c,ios,three20,Iphone,Objective C,Ios,Three20,有没有可能在Three20开源中的完整图像显示的导航栏上添加UIButton。 或者,当显示图像的大拇指时,可以添加或不添加按钮。可以通过以下方式完成操作 UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom]; [myButton setImage:[UIImage imageNamed:@"myButtonImage"] forState:UIControlStateNormal]; [myButton setTar

有没有可能在Three20开源中的完整图像显示的导航栏上添加UIButton。
或者,当显示图像的大拇指时,可以添加或不添加按钮。

可以通过以下方式完成操作

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

完整图像表示它在整个视图中显示?表示缩略图的大图像,但我的问题是,我在其中添加了此栏按钮。我在api中没有找到任何可以添加barButton的地方。实际添加发生在这一行:self.navigationItem.rightBarButtonItem=barButton;这将把它添加到导航栏的右侧。