変数 x が 1000 より大きい場合にアラート ビューをポップアップさせたいと考えています。
これまでの私のコードは次のとおりです。
if (x>1000) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Title", nil)
message:NSLocalizedString(@"Message", nil)
delegate:nil
cancelButtonTitle:NSLocalizedString(@"OK", nil)
otherButtonTitles:nil];
[alert show];
[alert release];
}