how to get phone number of selected person in contacts
<p>I need to get phone number from contacts.</p>

<p>For that my code is   </p>

<pre><code>- (IBAction)contacts {

    NSLog(@"contacts clicked ");

    ABPeoplePickerNavigationController *peoplePickerController = [[ABPeoplePickerNavigationController alloc] init];
    peoplePickerController.peoplePickerDelegate = self;
    [self presentModalViewController:peoplePickerController animated:NO];
    [peoplePickerController release];

}
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker
      shouldContinueAfterSelectingPerson:(ABRecordRef)person {
    NSString *number = (NSString *)ABRecordCopyValue(person, kABPersonPhoneProperty);

    NSLog(@" %@",number);
    return YES;
}
</code></pre>

<p>here it displays in console like this</p>

<pre><code>ABMultiValueRef 0x740b680 with 1 value(s)
    0: _$!&lt;Mobile&gt;!$_ (0x7419880) - (929) 230-8622 (0x740b490)
</code></pre>

<p>Here <code>(929) 230-8622</code> is mobile number,How can i get only mobile number.</p>

<p>After selecting contact i need to close this view controller.</p>

<p>For that i write code like this </p>

<p>[self dissmissModalViewControllerAnimated:YES];</p>

<p>But it shows waning that myclass may not respond to dissmissModalViewController.</p>

<p>How can i done that after selection i need to close this view controller.</p>

<p>can anyone pls help me.</p>

<p>Thank u in advance.  </p>
