Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shrtlist/ABDelete
ABPersonViewController category which allows contact deletion. NOTE: Unavailable in iOS 7
https://github.com/shrtlist/ABDelete
Last synced: about 1 month ago
JSON representation
ABPersonViewController category which allows contact deletion. NOTE: Unavailable in iOS 7
- Host: GitHub
- URL: https://github.com/shrtlist/ABDelete
- Owner: shrtlist
- License: apache-2.0
- Archived: true
- Created: 2012-01-06T07:55:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T01:24:49.000Z (almost 11 years ago)
- Last Synced: 2023-03-11T19:37:12.714Z (almost 2 years ago)
- Language: Objective-C
- Homepage:
- Size: 263 KB
- Stars: 37
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
- awesome - ABDelete - ABPersonViewController category which allows contact deletion. NOTE: Unavailable in iOS 7 (etc)
- awesome - ABDelete - ABPersonViewController category which allows contact deletion. NOTE: Unavailable in iOS 7 (etc)
README
### ABPersonViewController+Delete
A category on `ABPersonViewController` that supports address book contact deletion (default `ABPersonViewController` only supports updating). This category does not use any private methods.![](http://i.imgur.com/Edf6Zle.png)
### Usage
#import "ABPersonViewController+Delete.h"
#import
// Instantiate the ABPeoplePickerNavigationController and set its delegate
self.peoplePickerNavigationController = [[ABPeoplePickerNavigationController alloc] init];
self.peoplePickerNavigationController.peoplePickerDelegate = self;// Instantiate the ABPersonViewController+Delete category and set its properties
ABPersonViewController *personViewController = [[ABPersonViewController alloc] init];
personViewController.personViewDelegate = self;
personViewController.allowsEditing = YES;
personViewController.displayedPerson = person;// Show the ABPersonViewController instance
[self.peoplePickerNavigationController pushViewController:personViewController animated:YES];Note that in Simulator, `ABPeoplePickerNavigationController` does not appear to get refreshed after a deletion. This may be due to differences between the device framework and the Simulator framework.
### Build requirements
Xcode 4.2, iOS 5.0 SDK, LLVM Compiler 3.0, Automated Reference Counting (ARC).### Deployment target
iOS 4.3-6.x. No longer working as of iOS 7.### License
The source code is available under the Apache License, Version 2.0### Contributing
Forks, patches and other feedback are always welcome.[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/shrtlist/abdelete/trend.png)](https://bitdeli.com/free "Bitdeli Badge")