IOS開発は初めてです。「作成」と「キャンセル」の2つのボタンがあるビューがありますが、強調表示されていません。それらは、コピー/カップ/貼り付けの長押しを可能にするPDFの上に表示されます)。実際、「作成」は非常に高速にハイライト表示されますが、キャンセルしても状態はまったく変わりません。何がこれを引き起こしているのか考えてみてください。
-(IBAction)create:(id)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Name your object" message:@"" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Save",nil];
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
[alert show];
}
-(IBAction)cancel:(id)sender{
[self.view removeFromSuperview];
[[NSNotificationCenter defaultCenter] postNotificationName:kExitAnnotationView object:nil ];
}