i want to ask how i show contact list when i sending sms and it show list like receipents. i don't want to hard code my numbers it must be dynamic and it show list of numbers or names from database and how i do this from contact list my code is like this
-(IBAction)composerSheet
{
appDelegate=(UntitledAppDelegate *)[[[UIApplication sharedApplication] delegate]retain];
studentArray=[[[NSMutableArray alloc]init]retain];
studentArray=[[appDelegate.database selectStudentName]retain];
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
picker.recipients = [NSArray arrayWithArray:studentArray];
picker.body = @"iPhone OS4";
[self presentModalViewController

icker animated:YES];
[picker release];
}