Skip to main content

Find a person using his addressbookrecordID only !!!

HI All,

Today i implement a good thing that i think i should post on the blog i make a function by whcih you can display address book full information just using the RecordID of a user in addressbook here is the function by which you can just fetch all information about a person if you have only his recordID from address book .




    ABAddressBookRef ab = ABAddressBookCreate();
    ABPersonViewController *navCtlr = [[ABPersonViewController alloc] init];
    
    ABRecordRef person = ABAddressBookGetPersonWithRecordID(ab,RecordID);
    navCtlr.displayedPerson = person;
    navCtlr.addressBook = ab;
    navCtlr.allowsEditing = YES;
    [[self navigationController] pushViewController: navCtlr animated:YES];

this will open the controller that will have full information against the record id of that particular user.

Thanks,

Comments

Popular posts from this blog

the initiation

HI all welcome to my blog spot here i comes for sharing knowledge and gaining too  here welcome all to person who want to discuss about objective c ,xcode,macosx etc i mean everything all about the iphone and its application.  Recently like the iphone sdk 3.0 has been launched and every developer has to work with it but still the developers are getting some problem so here we comes help to each other by sharing our problem and making and trying them solved easily .By this we can make the problem solved and the can gain the things which would be better for our professional life  THanks  Balraj verma 

Ios 6 Vs Jelly Bean !!!

Well , Well , Well this gonna be a boom because ios 6 going to be launched by Apple in this summer fall so Google is ready with Jelly Bean and Window os 7 is already creating impression by their outlook and quick and easy usage to his user's. As the facebook is getting famous day by day they are also planned to keep these things to as much near as possible so each os is giving default Facebook Access to the os . The work of user is getting less as the phone are getting more intelligence. You don't need to add a new address in your contact book if user already exists in your Social network. The os will itself fetch the data from social site and add that user in your contact book. So apple come with each time a new initiation and lesson for other mobile os. So far ios 6 is going to be a BOOOOOOM and here are some of the newly added feature by Apple in ios6. Maps IOS 6  drops Google's mapping technology in the form of an inhouse Apple solution, while  window phon