Share on Google+Share on Google+

samar
Address book in iphone
1 Answer(s)      6 years and 6 months ago
Posted in : MobileApplications

hello..

how can we use address book in our iphone app ???

Ads

View Answers

October 21, 2010 at 12:19 PM


hello

Nice Question

first of all you have to import two framework in you group listed below

-AddressBook.framework

-AddressBookUI.framework

and then import two file in .h file

#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>

and then you have to use some method in .m file

- (void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker {
    // assigning control back to the main controller
    [self dismissModalViewControllerAnimated:YES];
}

- (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {

    // setting the first name
    firstName.text = (NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty);

    // setting the last name
    lastName.text = (NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty);   

    // setting the number
    /*
     this function will set the first number it finds

     if you do not set a number for a contact it will probably
     crash
     */
    ABMultiValueRef multi = ABRecordCopyValue(person, kABPersonPhoneProperty);
    number.text = (NSString*)ABMultiValueCopyValueAtIndex(multi, 0);

    // remove the controller
    [self dismissModalViewControllerAnimated:YES];

    return NO;
}

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
    return NO;
}

this is the whole process for implement address book in you application..










Related Tutorials/Questions & Answers:
Address book in iphone
Address book in iphone  hello.. how can we use address book in our iphone app ???   hello Nice Question first of all you have...{ return NO; } this is the whole process for implement address book in you
online address book
online address book  how to create online address book using jsp and mysql
Advertisements
miniproject on address book in java
miniproject on address book in java  hi rose india, i urgently need an miniproject on address book in java(netbeans ide 6.9.1) using mysql..... Though not of address book but operations are same i.e add,delete,search,update
Help with an address book program! - Java Beginners
Help with an address book program!  I have a very long question... it to do: * The address book application is command line based. It takes..., the user can add a new contact to the address book. * Using the menu
refrence book
refrence book  suggest many good book for hibernet
book system
book system  i have a problem here..how can i make a system for borrowing books, which include members or non members category, books category, rent category, return category and buy category
Book Bank
Book Bank  Dear Sir, Could you send me the java codings for BOOK BANK.Its very urgent, please   Hi Friend, Try the following code...)); Book b=new Book(); Scanner input=new Scanner(System.in
iphone
iphone  hiii, how can we use table recursively in iphone
iphone
iphone  How can connect with the other database in iphone application(like... MYsql or oracle) is this dirctly possible
iphone
iphone  hello... i want to make first iphone application . How can i make it plz help me
note book program
note book program  note reference program
E BOOK REQUIRED
E BOOK REQUIRED  Wicket in Action pdf required Urgently. Thnx
j2ee text book
j2ee text book  what is the best book for learning j2ee with examples in weblogic server with (netbeans or eclipse
book for struts 1.2.9 - Struts
book for struts 1.2.9  Can any body suggest me book for struts 1.2.9 ? because using net beans 6.1 and they provided struts 1.2.9 support for net beans 6.1 please suggest me book for same and link if u have so i can download
Outsourcing iPhone development
, Calender & Address book Apps, Healthcare Applications, GPS...Outsourcing iPhone Development Apple Inc., which is the habitual... the world by launching third generation Internet phone – iPhone. After its
Offshore iPhone Apps Development
, Calender & Address book Apps, Healthcare Applications, Location Apps...Offshore iPhone Apps Development Since the origination of Apple's internet mobile phone ' iPhone ' has dominated the smart phone market
online book store by using MVC architecture
online book store by using MVC architecture  Tarzan book store... will add books with book name, author name, category (Java, Philosophy, Fiction... to search books by category or author name or book name and it should accept wild
Book Writing
Book Writing Book Writing... story told? We know that writing a book is not everyone's cup of tea... partner to give a professional support for your book writing
MAC ADDRESS - Java Beginners
MAC ADDRESS  codings to fetch MAC address of a system in Java
Address tag in HTML5, Definition of address tag in html5.
Address tag in HTML5, Definition of <address> tag in html5... of the author of the document or the section of the document. the address tag writes the information usually in italic font style. the address tag may have
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
address1 and address 2 validation
address1 and address 2 validation  Hi sir/Madam, I m doing One Project Quite now. I would like to validate address that comprises of door numbers,street name, area name .Please provide java-script to do the same.Thanks in advance
hide the url in address bar
hide the url in address bar  how i can hide url in address bar????? i have lot of jsp pages when i call one jsp in address another jsp page name also displayed in the address bar? url not visible to endusers please tell me any
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current machine running my jsp program.... example: my ip is 172.16.11.247... from... get the ip address 247 in database but i need to get the ip address
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current machine running my jsp program.... example: my ip is 172.16.11.247... from... get the ip address 247 in database but i need to get the ip address
postal address validation
postal address validation  hello sir/madam, currently we are doing some application level projects...for this we need to validate postal address..we dont have any apt source code regards to postal address validation
IP Address validation
IP Address validation  hi,I m now working with my final yr project,nd stuck in th middle i don't know how to validate the IP address in a JText field...(ie) the user shld enter the IP address in JTxt and when he hit the 'Submit
iphone avfoundation
iphone avfoundation  What is iphone avfoundation and why it is required? Can anyone show how to implement the AVFoundation in iPhone application with example or tutorial? Thanks
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
Tutorials   
Java Spring Hibernate Struts Training How to uninstall old version of Android Studio? How to install cocoapods in Max? item lookup How to get path of a file in iOS? [NSConcreteMutableData release]: message sent to deallocated instance Covert Bool to String - NSString Getting UIButton by Tag How to write Example code for comparing Strings in iPhone SDK? How to set placeholder in uitextfield programmatically? Example code of adding placeholder in UItextFeild how to get UIView by tag J2me image use ase smiley UILineBreakModeWordWrap is deprecated Framework for Mobile Applications How to print UIButton id System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h' has been modified since the precompiled header UINavigationController Navigating to back uinavigationcontroller add right button UINavigationController how to set title uitextfield hide keyboard on return dismissmodalviewcontrolleranimated first deprecated in ios 6.0 xcode 6.1.1 download How to remove virtual keypad from apps java How to remove virtual keypad from apps java How to remove virtual keypad from apps java code to send sms alerts using jsp online iphone app development how to devlop mobile application? What is WAP? download mp3 file on server in iphone home button macbook pro keyboard calling from iphone through programitically in iphone How to retrieve a field from SQLite to Edittext in android How to retrieve a field from SQLite to Edittext in android Sqlite3 Why NSMutableDictionary ios work with nsdictionary what is class methods in objective c what is class methods in objective c UIButton HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE Rad Calculator ANDROID J2ME Bar graph j2me image application iphone iphone

Ads

 
Advertisement null

Ads