title: When changing the image of a contact
body: <p>I'm trying to change the image of a selected contact in <code>peoplePickerNavigationController</code>, but when I choose a contact, does not change the image and shows no error.</p>
  
  <p>Well, far as I know, it's all right! Something is missing?</p>
  
  <p>This is the code:</p>
  
  <pre><code>ABAddressBookRef aBook = ABAddressBookCreate();
  
  UIImage *img = [UIImage imageNamed:@"90x90.png"];
  NSData *dataRef = UIImagePNGRepresentation(img);
  CFDataRef cfdata = CFDataCreate(NULL, [dataRef bytes], [dataRef length]);
  CFErrorRef error;
  
  if(ABPersonRemoveImageData(person, &amp;error)){
      NSLog(@"OK");
  }
  if(ABAddressBookSave(aBook, &amp;error)){
      NSLog(@"OK");
  }
  
  if(ABPersonSetImageData(person, cfdata, &amp;error)){
      NSLog(@"OK");
  }
  if(ABAddressBookSave(aBook, &amp;error)){
      NSLog(@"OK");
  }
  
  CFRelease(cfdata);
  
  [self dismissModalViewControllerAnimated:YES];
  return NO;
  </code></pre>
  
  <p>Remembering that the above code is within the BOOL:</p>
  
  <pre><code>- (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {  }
  </code></pre>
  
  <p>Thanks!</p>