Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Jun 11, 2010 9:40 pm Post subject: AddressBook & Mail |
|
|
iphonedevsdk.com - ABPersonViewController and Editing Contacts
"I managed to get the add contact working pretty simply by creating a
navcontroller on-the-fly like so..." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Jun 11, 2010 9:48 pm Post subject: |
|
|
From the book iPhone in Action:
Code: | -(IBAction)newContact:(id)sender
{
ABNewPersonViewController *myAdder = [[ABNewPersonViewController alloc] init];
myAdder.newPersonViewDelegate = self;
UINavigationController *myNav = [[UINavigationController alloc] initWithRootViewController:myAdder];
[self presentModalViewController:myNav animated:YES];
[myAdder release];
[myNav release];
}
- (void)newPersonViewController:(ABNewPersonViewController *)newPersonViewController didCompleteWithNewPerson:(ABRecordRef)person
{
[self dismissModalViewControllerAnimated:YES];
}
|
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Jun 12, 2010 2:15 am Post subject: |
|
|
iphonedevsdk.com - Problem with some AddressBook code... can you help?
"If i CFRelease(addressbook), my program crashes.
If i don't release it, I see many many SQL lib objects created & still living
that I don't need around.... pointing to the ABAddressBookCreate() code." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Jan 23, 2011 12:43 am Post subject: |
|
|
SO - Can't send email with video/audio attachment on iphone!
Code: | NSString *mp3File = [NSTemporaryDirectory() stringByAppendingPathComponent: @"tmp.mp3"];
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:mp3File];
NSData *soundFile = [[NSData alloc] initWithContentsOfURL:fileURL];
[mailDialogController addAttachmentData:soundFile mimeType:@"audio/mpeg" fileName:@"tmp.mp3"];
|
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon May 01, 2017 3:57 pm Post subject: |
|
|
se - Choose which X.509 certificate to use for signing mails
"Apple Mail will detect the signing certificate stored in your login keychain and
associate it with the account in Apple Mail that is using the same email address
specified in the certificate's RFC 822 Name field." |
|
Back to top |
|
|
|