2013-11-28 56 views

回答

0

從簡單的消息框開始怎麼樣?

NSString *caption = @"Reminder"; 
NSString *text = @"Alarm!"; 
NSAlert* x = [[NSAlert alloc] init]; 
[x setInformativeText: text]; 
[x setMessageText: caption]; 
[x addButtonWithTitle: @"OK"]; 
[x runModal]; 
[x release]; 
+0

謝謝,我會試試這個 – laiqn

+1

你可以使用'NSRunAlertPanel' –