Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _mail.AddAttachmentData(nsd,"text/plain", filePath);
- NSString *myFilePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"];
- NSData *myData = [NSData dataWithContentsOfFile:myFilePath];
Add Comment
Please, Sign In to add comment