2010-11-04 67 views

回答

2

你在哪裏初始化你的按鈕:

[myButton addTarget:self action:@selector(clickedButton:) forControlEvents:UIControlEventTouchUpInside]; 

然後在一個單獨的功能:

-(void)clickedButton:(id)selector { 
    // delete as appropriate 
    [self.navigationController pushViewController:viewController animated:YES]; 
    // or 
    [self.view addSubview:theView]; 
    // or 
    [self presentModalViewController:viewController animated:YES]; 
} 
+0

謝謝托馬斯,看到你的個人資料,我設在伯明翰。 – 2010-11-04 16:42:53

+0

沒問題。 :)在伯明翰的行蹤?你有推特嗎? – 2010-11-04 16:43:58

+0

Alvechurch..team 3 ppl ... iphone應用開發者..jinnashravan(twitter) – 2010-11-04 16:59:01

相關問題