0
下面的代碼應該顯示一個UIAlertView來響應在UIActionSheet中單擊的按鈕,但我無法弄清楚爲什麼它不起作用。有人有一個想法,爲什麼這是?爲什麼此代碼不顯示警報?
-(void)actionsheet:(UIActionSheet *)actionsheet willDissmissAtButtonIndex:(NSInteger)
buttonindex{
if(buttonindex =[actionsheet cancelButtonIndex]){
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"welcome"
message:@"thanku for watching" delegate:self cancelButtonTitle:@"bye"
otherButtonTitles:nil];
[alert show];
[alert release];
}
其中缺少= – 2010-07-31 10:37:03