Here's what the UI for selecting an existing person looks like:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmnLsOEcz1EuC6A_8aypWjnwypClAuCO-VqAcGGwlgGChnb-1bu2G44SmziRoMDbxlO9sz4nxn0ON9g-5VtwRasA-uJro91irQ-rXK-dKNWD312Hd5Y165bBOI4srSHDTvHuU3r-VoJo0/s400/iPhone+SimulatorScreenSnapz001.jpg)
So... why couldn't we just have the currently-blank left bar button item be an "add new contact" (+) button that dismisses the address book and presents the UI for adding a new person? Why make us go through two separate steps. I mean, not everybody knows exactly who is already in their address book off of the top of their head.
Anyway, I spent some time poking around the header files and the class-dump of the Address Book frameworks trying to see if I could implement this functionality myself, but I started getting way into the realm of disallowed private methods so, out of fear of getting my client's app rejected from the App Store, I gave up. My temporary solution is when the user cancels their selection, I prompt them with an Action Sheet to see if they want to add a new person since they didn't select find one from their address book. It's a little ugly, but better than cluttering up my interface with an additional button. Adding a contact is something people are, most of the time, going to do once, so I really don't want to lose the space to another button.
I opened an enhancement request on this: rdar://6517666
No comments:
Post a Comment