abpersonviewcontroller

Swift: Copy Information Selected by User in ABPersonViewController to Dictionary

天大地大妈咪最大 提交于 2019-12-03 22:07:07
I'm trying to implement the func personViewController(personViewController: ABPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier valueIdentifier: ABMultiValueIdentifier) -> Bool function, which is part of the ABPersonViewControllerDelegate protocol and is called whenever the user clicks on an item in the ABPersonViewController , such that any information the user selects will be copied to a [String : String] dictionary such that the property name will be the key for the property value: [..."kABPersonFirstNameProperty" :

How is iPhone Contact app's detail View implemented

大憨熊 提交于 2019-11-30 07:10:47
问题 I would like to implement a view similar to the detail view of Apple's own Contacts app where it displays the name, phone number, note, etc. and its Edit mode. Can you dissect how the whole view is done? Is that view done with a UITableView or a UIScrollView? 回答1: The contact details screen is actually quite simple to mimic. Start with a UITableView and provide it with a UITableViewDataSource and UITableViewDelegate. You'll need to provide sections for all the data you want to present. This

How is iPhone Contact app's detail View implemented

社会主义新天地 提交于 2019-11-29 01:53:10
I would like to implement a view similar to the detail view of Apple's own Contacts app where it displays the name, phone number, note, etc. and its Edit mode. Can you dissect how the whole view is done? Is that view done with a UITableView or a UIScrollView? The contact details screen is actually quite simple to mimic. Start with a UITableView and provide it with a UITableViewDataSource and UITableViewDelegate. You'll need to provide sections for all the data you want to present. This means 1 for the custom header, 1 for the custom footer (buttons / actions), and approximately 6 or so