2013-01-10 50 views
0

我有iPhone如下。如何點擊/按導航條上的酒吧按鈕編程方式

enter image description here

我要的是點擊一下按鈕Delete **編程Refresh按鈕**。

說明:我已經提供了標籤也Refresh按鈕。

任何想法/建議將不勝感激。

+0

你爲什麼不初始化的rightbarbutton項目有一個UIButton和它的點擊進行選擇?你可以隨時調用它的方法 – amar

回答

0

我認爲u有delete and refresh actions

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

現在在delete actioncallrefresh action只是這樣的:

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

我相信相同的按鈕不能有Action和屬性**兩個** ..所以我不能給名稱刷新按鈕爲'btnRefresh'。 –

+0

我沒有得到在評論中寫的東西。 –

+0

什麼是'btnRefresh'。它的屬性連接到刷新按鈕? –