我在一個函數調用喜歡這個地方顯示一個警告視圖...如何解除UIAlertView的父視圖從外部彈出?
UIAlertView *alert_local = [[UIAlertView alloc]
initWithTitle:nil
message:@"Are you sure want to discard what you have recorded so far?"
delegate:self cancelButtonTitle:@"Yes"
otherButtonTitles:@"No", nil];
alert_local.tag = 4;
[alert_local show];
但我還沒有回答YES或NO爲。在一個序列中,我彈出了顯示來自外部的警報的視圖,但是警報視圖仍然存在,我通過將警報視圖設置爲伊娃來處理它。這是正確的方法嗎?或者任何其他方式來處理這種順序?爲什麼警報視圖在其父視圖彈出後仍然存在?
一個小代碼示例可以幫助新手。 :) – 2014-02-21 05:56:11