0
我遇到警報問題。當我將以下內容添加到我的程序時,它顯示錯誤:iPhone中的警報視圖
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"That's it" message:@"THANKS FOR USING" delegate:self cancelButtonTitle:@"bye" otherButtonTitles:nil];
[alert show];
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSLog(@"Button %d pressed", buttonIndex);
[ alertView release ];
}
這顯示錯誤---- alertView未聲明和預期;之前:
請幫我解決我的問題。當我點擊警報上的按鈕時,我想執行一些操作。