我是IOS開發新手。我有兩個按鈕「創建」和「取消」的視圖,但他們沒有突出顯示。它們出現在允許複製/杯子/粘貼的longpress的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 ];
}