Home Answers Viewqa Mobile-Applications Address book in iphone

 
 


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

hello..

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

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 Pages:
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
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
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
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
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
parse in iphone
parse in iphone  <p>{ itemCount: 2, subtotal: "$15.50", items:[ { title: "The Big Book of Foo", description: "Bestselling book of Foo by A.N. Other", imageUrl: "/images/books/12345.gif
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
Online and Onsite iPhone Training Course from Rose India
Views Networking Event Management Picture Integration Address Book... Online and Onsite iPhone Training Course from Rose India     Apple iPhone is a great 3G multi-touch phone
Web Development for iPhone
Web Development for iPhone Developing Web apps for iPhone or any other... for desktop. A web app for iPhone needs special characteristics and developers must keep those characteristics in their mind while developing any site for iPhone web
iphone
iphone  hiii, how can we use table recursively in iphone
iphone
iphone  hello... i want to make first iphone application . How can i make it plz help me
iphone
iphone  How can connect with the other database in iphone application(like... MYsql or oracle) is this dirctly possible
note book program
note book program  note reference program
The iPhone as a Business Phone
The iPhone as a Business Phone       The Apple iPhone is a great consumer phone with unique... to iPhone's utility for businesses. Although sceptics raised doubts over the iPhone's
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
Reliability of iPhone 3G
Reliability of iPhone 3G       The iPhone has generated more than a fair amount of buzz ever since its launch and for good reasons also. The iPhone is a fairly reliable
Struts Book - Popular Struts Books
Struts Book - Popular Struts Books Programming Jakarta... for building enterprise-level Web applications. In the first book to cover... sophisticated Struts 1.1.This book covers everything you need to know about
iPhone Advantages and Disadvantages
iPhone Advantages and Disadvantages       iPhone 3G Vs others: iPhone 3G Advantages and Disadvantages When the iPhone was initially launched in 2007 it was easily the most
Maximize Your iPhone 3G Experience
Maximize Your iPhone 3G Experience       The iPhone is a superb gadget with many handy... that can be used to enhance your iPhone experience. This not only saves time but also
Installing iPhone SDK
://developer.apple.com/iphone in the address bar of your web browser... Downloading and Installing iPhone SDK?       Downloading SDK for iPhone
The iPhone Application Development Process is Valuable
The iPhone Application Development Process is Valuable Apple’s iPhone... of this comes from how the iPhone is capable of supporting thousands of different types of applications. The process of iPhone application development does not have
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
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
MAC ADDRESS - Java Beginners
MAC ADDRESS  codings to fetch MAC address of a system in Java
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
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
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
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
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
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
How to find MAC(Hardware address) address of access point
How to find MAC(Hardware address) address of access point  How can i find out MAC address of Access Point using java
Iphone call
Iphone call  Do you have other method to make a call on Iphone,without openUrl
Getting IP address of All the machines
Getting IP address of All the machines  Program how to fetch All the IP address on my domain(LAN) in java

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.