iPhone crash log
<p>do you explain the foollowing crash log......</p>

<pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController createAddressBookCopy]: unrecognized selector sent to instance 0x5908300'.
</code></pre>

<p>what does it mean?
my code is here....</p>

<pre><code>-(NSString *)pathOfFile{
    NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
    NSString *documentsDirectory=[paths objectAtIndex:0];
    //lastName.text=[paths objectAtIndex:0];
    return [documentsDirectory stringByAppendingFormat:@"contacts.plist"];
}


-(IBAction)createAddressBookCopy{

UIActionSheet *actionSheet=[[UIActionSheet alloc]
                            initWithTitle:@"Wanna create a copy of Addressbook?"
                            delegate:self
                            cancelButtonTitle:@"Cancel"
                            destructiveButtonTitle:@"Yeah!!!"
                            otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];



ABAddressBookRef addressBook = ABAddressBookCreate();

CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook);
CFIndex nPeople = ABAddressBookGetPersonCount(addressBook);

NSMutableArray *masterList = [[NSMutableArray alloc] init];
for (int i = 0; i &lt; nPeople; i++) {
    ABRecordRef ref = CFArrayGetValueAtIndex(allPeople, i);
    CFStringRef fName = ABRecordCopyValue(ref, kABPersonFirstNameProperty);
    CFStringRef lName = ABRecordCopyValue(ref, kABPersonLastNameProperty);
    NSString *contactFirstLast = [NSString stringWithFormat: @"%@", (NSString *)lName];

    CFRelease(fName);
    CFRelease(lName);
    [masterList addObject:contactFirstLast];
    //[contactFirstLast release];
}

//self.list = masterList;
[masterList writeToFile:[self pathOfFile] atomically:YES];

[masterList release]; 

}

//creating action sheet

-(void)actionSheet:(UIActionSheet *) actionSheet willDismissWithButtonIndex:(NSInteger)buttonIndex{
    if (buttonIndex!=[actionSheet cancelButtonIndex]) {
        UIAlertView *alert=[[UIAlertView alloc]
                            initWithTitle:@"Copy creaeted."
                            message:@"New copy is contacts.plist"
                            delegate:self
                            cancelButtonTitle:@"DONE" 
                            otherButtonTitles:nil
                            ];
        [alert show];
        [alert release];
    }
}
</code></pre>
