我新的目標C和我在我需要真正快速創建一個iPhone應用程序的位置,我使用的XCode 4.2UIalert視圖不工作
我希望有一個彈出,我使用驗證碼:
在.H我
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
,並在.m文件
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Confirmation"
message:@"confirmed"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil,nil];
[alert show];
鱈魚e向我展示了一個建築錯誤「預期標識符」,我忘記了什麼?
感謝
檢查括號匹配,parens,大括號只需雙擊一個,如果有匹配,選擇將highlite。很好的快速測試。 – zaph
額外支架。在分配之前刪除它們之一。 – Jacob
我的回答有幫助嗎? – Oliver