Using ABPersonViewController and editing, the cancel button does nothing in iOS 8.1.

Originator:rupert
Number:rdar://18908064 Date Originated:07/11/2014
Status:Open Resolved:
Product:iOS Product Version:8.1(12B411)
Classification: Reproducible:Always
 
Summary:
If you display an ABPersonViewController to display an address book contact, the tap edit to go to the editing screen, there are two toolbar buttons present on the navigation bar - a "Cancel" button on the left and a "Done" button on the right. On first edit, the "Cancel" button is enabled but does nothing and the "Done" button is also enabled.

Steps to Reproduce:
1. Run attached project.
2. Tap the "edit contacts" button in the centre of the screen.
3. Grant access to the address book (this seems to take a long time to call the completion block - either wait, or stop and relaunch the app and repeat)
4. In the ABPersonViewController tap the edit button on the right of the navigation bar.
5. In the edit view which has appeared, tap the "Cancel" button on the left of the navigation toolbar as many times as you like.

Expected Results:
Tapping the cancel button should return to the ABPersonViewController view, and the "Done" button should not be enabled unless you have actually made changes to the contact.

Actual Results:
Tapping the cancel button has no effect (unless you have already tapped the "Done" button then returned to the edit mode again).
The "Done" button is enabled even if you have not made any changes (unless you have already tapped the "Done" button then returned to the edit mode again).

Version:
8.112B411

Notes:
In iOS 7.1 this functions as expected - i.e. the bug seems to be a regression in iOS 8 or 8.1.

Configuration:
iPhone 4S 32GB, Simulator iPhone 5S, iPhone 6

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!