2011-09-20 84 views
0

我想從updateButtonPressed方法調用另一個方法。 這是我的嘗試。如何從另一個方法調用方法

-(IBAction) updateButtonPressed{ 
    [self loadScrollViewWithPage]; 
} 

但問題是loadScrollViewWithPage方法具有參數。該方法是這樣的

- (void)loadScrollViewWithPage:(int)page { 
} 

我怎麼能要求這種方法?請給我一個幫助。 感謝先進。

回答

3
- (IBAction) updateButtonPressed{ 
    int tempValue=5; 
    [self loadScrollViewWithPage:tempValue]; 
} 
+0

感謝很多人,它解決了:) – sajaz

相關問題