Xcode: name clickable in UITextField and launch addressbook upon click

In the following UI, you can select person from address book. Notice that name is clickable and launches address book upon click.

In my application, I am able to choose contact from address book and extract the full name but when I add it to UITextField, it just shows as name, its not clickable as follows:

Q. How can I make the name in my app clickable and it would take me to address book upon click.

I am using wrapper classes to interact with address book and here is my code.

- (BOOL)peoplePickerNavigationController:
(ABPeoplePickerNavigationController *)peoplePicker
    // Guaranteed to only be working with e-mail or phone here
    [self dismissModalViewControllerAnimated:YES];

    NSArray *array =
    [ABContact arrayForProperty:property inRecord:person];
    NSString *pickedValue = (NSString *)[array objectAtIndex:identifier];

    NSString *firstName = [[ABContact contactWithRecord:person] firstname];
    NSString *lastName = [[ABContact contactWithRecord:person] lastname];
    NSString *fullName = [[NSString alloc] initWithFormat:@"%@ %@",firstName, lastName];

    if (chooseEmail)
        txtToEmailAddress.text = fullName;
    if (choosePhone)
        txtCallPhoneNum.text = fullName;

    if (chooseText)
        txtTextNumbers.text = fullName;


    return NO;


Please provide code sample with answers if possible. I very much appreciate it. Thanks


There's a few open source ideas you can take a look at that may help. https://github.com/beat843796/HEBubbleView


Need Your Help

Exclude commits from Git hooks?

git github githooks travis-ci

Is it possible to exclude certain commits from being pushed to a service hook on Github? For example, if I only edit the Readme file of a project, it makes no sense to re-test the entire applicatio...

Floating/Embedded QDockWidget in a QWidget (KXmlGuiWindow's CentralWidget designed in QT Designer)

c++ qt qt4 kde kdevelop

I'm just trying to get into QT (and KDE) program, and have hit a snag trying to add a floatable, draggable QDockWidget to the .ui file (based as a QWidget) that is embedded into my KDE 4 program.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.