Note that there are some explanatory texts on larger screens.

plurals
  1. POFaceTime message appears when adding a new contact in iPhone
    primarykey
    data
    text
    <p>I tried to add a new person in iPhone using ABNewPersonViewController, but on iPhone 4, sometimes it shows a FaceTime message saying "Your carrier may charge for SMS messages used to activate video calling" (see the screenshot, it's in French). I don't do anything related to FaceTime at all. I suspect it's a bug from the iOS itself. Anyone have seen this before, and a workaround to avoid this message?</p> <p><img src="https://i.stack.imgur.com/qptKC.png" alt="enter image description here"></p> <p>The code I used to invoke ABNewPersonViewController:</p> <pre><code>- (IBAction)addContactButtonDidClick { ABNewPersonViewController *newPersonController = [[ABNewPersonViewController alloc] init]; newPersonController.newPersonViewDelegate = self; // Prefill person ABRecordRef newPerson = ABPersonCreate(); ABRecordSetValue(newPerson, kABPersonFirstNameProperty, person_.firstName, nil); ABRecordSetValue(newPerson, kABPersonLastNameProperty, person_.lastName, nil); ABRecordSetValue(newPerson, kABPersonNoteProperty, person_.note, nil); ABRecordSetValue(newPerson, kABPersonJobTitleProperty, person_.speciality, nil); // Prefill phone ABMutableMultiValueRef multiPhone = ABMultiValueCreateMutable(kABMultiStringPropertyType); if (0 &lt; [person_.telephone length]) ABMultiValueAddValueAndLabel(multiPhone, person_.telephone, kABWorkLabel, NULL); if (0 &lt; [person_.mobile length]) ABMultiValueAddValueAndLabel(multiPhone, person_.mobile, kABPersonPhoneMobileLabel, NULL); ABRecordSetValue(newPerson, kABPersonPhoneProperty, multiPhone,nil); CFRelease(multiPhone); // Prefill email ABMutableMultiValueRef multiEmail = ABMultiValueCreateMutable(kABMultiStringPropertyType); if (0 &lt; [person_.email length]) ABMultiValueAddValueAndLabel(multiEmail, person_.email, kABWorkLabel, NULL); ABRecordSetValue(newPerson, kABPersonEmailProperty, multiEmail, nil); CFRelease(multiEmail); // Prefill address ABMutableMultiValueRef multiAddress = ABMultiValueCreateMutable(kABMultiDictionaryPropertyType); NSMutableDictionary *addressDictionary = [[NSMutableDictionary alloc] init]; if (0 &lt; [person_.address length]) [addressDictionary setObject:person_.address forKey:(NSString*)kABPersonAddressStreetKey]; if (0 &lt; [person_.city length]) [addressDictionary setObject:person_.city forKey:(NSString*)kABPersonAddressCityKey]; if (0 &lt; [person_.postalCode length]) [addressDictionary setObject:person_.postalCode forKey:(NSString*)kABPersonAddressZIPKey]; ABMultiValueAddValueAndLabel(multiAddress, addressDictionary, kABWorkLabel, NULL); ABRecordSetValue(newPerson, kABPersonAddressProperty, multiAddress, nil); CFRelease(multiAddress); newPersonController.displayedPerson = newPerson; // Show contact view in a modal view UINavigationController *personNavController = [[UINavigationController alloc] initWithRootViewController:newPersonController]; personNavController.navigationBar.tintColor = UIColorFromRGB(0xec7930); [self presentModalViewController:personNavController animated:YES]; [personNavController release]; [newPersonController release]; CFRelease(newPerson); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload