I'm trying to fill a 'Table View Cell' with selected contact information. I have a 'Stepper + & -' next to it to add the selected contact and remove it..
I need to know how to make the '+' open the framework...
In the interface file I have written as follows:
#import <UIKit/UIKit.h>
#import <AddressBookUI/AddressBookUI.h>
@interface APPNAME : UIViewController
@end
@interface ViewController : UIViewController <ABPeoplePickerNavigationControllerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *phoneNumber;
- (IBAction)showPicker:(id)sender;
@end
In the Implementation file I have written as follows:
@implementation ViewController
- (IBAction)showPicker:(id)sender
{
ABPeoplePickerNavigationController *picker =
[[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
[self presentModalViewController:picker animated:YES];
}
@end
But it isn't working.... Any suggestions??