UIAlertView isVisable incorrect state after -dismiss... method

Originator:evan
Number:rdar://13310533 Date Originated:27-Feb-2013 09:42 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.1.2
Classification:Serious Bug Reproducible:Always
 
Summary:

-isVisable incorrectly returns "YES" after -dismissWithClickedButtonIndex:animated: is called

Steps to Reproduce:

1. Alloc / init an alert view instance
2. Send message isVisable and receive "NO"
3. Send message show
4. Send message isVisible and receive "YES"
5. Send message dismissWithClickedButtonIndex:animated:

Expected Results:

6. Send message isVisible and receive "NO"

Actual Results:

6. Send message isVisible and receive "YES"

Regression:

Notes:

Discovered this when unit testing to verify an alert view was dismissed when UIApplication background notifications were posted

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!