views:

27

answers:

2

I used some code like below:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://123"]];
  1. what would happen if it runs in ipod touch
  2. how to target iphone user only when publish the app to the store.
A: 

You need to update your applications info.plist file. It lets you restrict the application to certain devices, OS:es etc.

Look at the UIRequiredDeviceCapabilities property which allows you to even specify that the device requires SMS :)

willcodejavaforfood
+1  A: 

In your app's Info.plist file, set the UIRequiredDeviceCapabilities property to contain sms as one of the keys. The App Store will handle whether or not to present your app to which devices that users browse the App Store with, and iTunes will know which devices it can sync your app to and which it can't.

BoltClock