如何以编程方式单击/按导航项上的栏按钮

时间:2013-01-10 08:06:28

标签: iphone objective-c ios6 uibutton uibarbuttonitem

我的iPhone如下所示。

enter image description here

我想要的是以编程方式点击Refresh按钮**,点击Delete按钮**。

注意:我还为Refresh按钮提供了标记。

1 个答案:

答案 0 :(得分:0)

我认为你有delete and refresh actions

 -(IBAction)deleteAction:(id)sender 
 -(IBAction)refreshAction:(id)sender:

现在delete action call refresh action就像这样:

-(IBAction)deleteAction:(id)sender
{
    [self refreshAction:btnRefresh]; //provide refresh action along with refersh button
    //I mean here act according to refresh method.
}