-(IBAction)buttonClick: (id)sender {
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Fo Sho?"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"fo sho"
otherButtonTitles:nil];
[actionSheet showInView:self.view];
}
一個UIButton將被鏈接到這個 「buttonClick」 IBAction爲,但什麼是 「自我」?
投票關閉,因爲這是一個可能的重複:http://stackoverflow.com/questions/1950155/iphone-obj-c-where-does-this-view-property-come-from – 2009-12-23 05:55:49
確切的其他副本問題 – stefanB 2009-12-23 06:23:24
它也接近此:http://stackoverflow.com/questions/1883973/is-self-a-pointer – 2009-12-23 15:42:47