-5
我有一個void方法負責URL,我想用IBAction(UIbutton)來調用它來更新/更改URL和我的視圖的內容。如何從 - (IBaction)方法調用 - (void)方法?
- (void) retrieveData {
_NSMutableDictionary = contains parts of the url
NSString * thisUrlGetsPutTogetherFromKeysInTheMutableDict = @"www.myurl.url";
}
-(IBAction)btnChangeUrl:(UIButton *)sender {
ADD something to the _NSMutableDictionary
Call "retrieveData" to update and re-load the URL.
}
我試過谷歌搜索答案之前,但我似乎無法找到明確的指示,我應該如何調用retrieveData。仍然是初學者。有人可以幫我嗎?
請了解更多關於語言第一。如何調用方法應該在第一堂課或第二堂課 – 2014-12-03 21:11:22
你從哪裏劫持這段代碼? – Andy 2014-12-04 02:19:24