sun が講義お題「ボタンをタップしてもアラートが表示されない。」を開始しました (寺子屋 教えて!iPhoneアプリ開発全般): 参考書の通りに作成したのですが、ボタンをタップしてもIOSシミュレーター上でアラートが出てこなくて困っております。以下ソースコードです。 #import "ViewController.h" @interface ViewController () - (IBAction)tapBtn:(id)sender; @end @implementation ViewController - (void)viewDidLoad { ; // Do any additional setup after loading the view, typically from a nib. } - (void)didReceiveMemoryWarning { ; // Dispose of any resources that can be recreated. } - (IBAction)tapBtn:(id)sender { UIAlertView *alert = initWithTitle:@"タイトル" message:@"メッセージ" delegate:self cancelButtonTitle:@"キャンセル" otherButtonTitles:@"OK",nil]; ; [...]
Trending Articles
More Pages to Explore .....