Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-10-2009, 06:56 PM   #2 (permalink)
jsonli
Registered Member
 
Join Date: Nov 2008
Posts: 188
jsonli is on a distinguished road
Default

Quote:
Originally Posted by DenVog View Post
Is it possible to launch the Text Message application and have it automatically open the New Message window without prepopulating a phone number?

Right now I can get it to launch the Text Message (SMS) application, but the user then has to click the new message button to compose a message.
Code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]]		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]];
I don't know who they will want to forward the message to, so I can't prepopulate the phone number. I would like to save them a click and have it open the New Message window by default.

PS-Ideally I could prepopulate the body of the message for the user, but I've gone through the forums and Apple docs and come up empty on that.
Have you tried an empty string in front of sms: ? A period? etc..
jsonli is offline   Reply With Quote
 

» Advertisements
» Online Users: 425
15 members and 410 guests
brainspoon, dre, Evilelement, ilmman, iOS.Lover, iphonedevshani, Kieren Harrold, kikko088, LegionMD, monu_rastogi, QuantumDoja, Robiwan, Sami Gh, waterkamp, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,794
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:59 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.