Reputation: 3324
NSString *url = [NSString stringWithString: @"mailto:?subject=Wallpapers%203d%20App&body=Have%20fun%20with%20this%20unique%20wallpaper%20app"];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
I am using this code to open the mail app at iphone in order the user to send an email. I want to add a url link or image(with url linke) inside the mail which the user sends so when his friend opens his email and taps to the link he will be redirected to the app store and download the app.
Upvotes: 1
Views: 2544
Reputation: 523464
MFMailComposeViewController
instead of mailto:
links to send mails. This gives you more control, e.g. you can attach an image with it.Upvotes: 1