char asd='a';
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Are you sure?" message:asd
delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
[alert show];
[alert release];
上面的代碼不在iPhone模擬器中編譯。 這是爲什麼? :)iPhone SDK簡單提醒信息問題
什麼錯誤信息,你得到什麼? – 2010-04-13 13:17:41