Embed App Store in my app - iphone

I see games in the App Store that allow you to download other games. Rather than app switching to the App Store to download the other game, it brings up an embedded App Store within the app itself.
Zoo Country is an example of an app that does this.
The only way I know of to bring someone to the app store to download another app is to do something like this, but this switches apps:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"itms://itunes.com/apps/appname"]];
How is Zoo Country embedding the App Store?

You want to use the SKStoreProductViewController class. Docs here.

Related

How to link to a tvOS app page on the Apple TV App Store

I want to link to my own app or other apps store page from inside my app (for example to rate my app). Could be in a way this page is opened inside my app and not directly open the App Store app with app page (it is possible on iOS).
Can't find a way to do that. Methods that works on iOS doesn't work here apparently.
Tried:
itms-apps://itunes.apple.com/app/id
https://itunes.apple.com/app/id
I know it could be done because I saw apps on the App Store that does exactly that.

Make phone call from Apple watch app

Can we use a button to make a phone call from the apple watch app?
For iPhone app we can use once the button is pressed:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"tel://1111111111"]]);
openURL is silently ignored if the device is locked or the app is in the background. Additionally WatchKit doesn't contain an API for initiating a phone call.
Your best bet may be to prompt the user to open the iPhone app, possibly using Handoff, and tap a button to initiate the call from there. Not a great solution, but WatchKit is pretty limited right now.
It's now possible from WatchOS2 :
if let telURL = NSURL(string: "tel:5553478") {
let wkExtension = WKExtension.sharedExtension()
wkExtension.openSystemURL(telURL)
}
cf1,
cf2.
You can't do this on Apple Watch itself. But there alternative ways like:
Tell the user to call the phone in the companion iPhone app
Use Handoff to jump from Apple Watch app to the companion iPhone app with just a tap on a button (a more user-friendly way)
NOTE: The best way is always waiting for new versions. In WWDC 2015 taking place in San Francisco (June 8-12), they will introduce WatchKit 2 with support for the companion kits on iOS and the native watch apps that run on Apple Watch without having the iPhone nearby.

Opening iCloud.app in iPhone application

How to open iCloud.app in my own iPhone application? The only information I have ables me to open Setting.app through this line of code
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs://"]];
but I want to check if the calender is on/off in iCloud on the iPhone.
So when I run my own application I want to move directly in iCloud through my application.
How to access iCloud in iPhone applications?
There is no such app as the iCloud app. I presume you are talking about the iCloud menu in the settings app, there was a brief time in iOS 5.0 where you could use the prefs:// URL scheme to access menus in the settings app, however Apple disabled that in the very next update.
Hopefully it wills return in the future, but even if it does there will still be no way to programmatically determine the status of settings (such as icloud calendar sync) or manipulate the settings.

An app used SMS functionality, how to publish the app to disallow ipod touch user download

I used some code like below:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"sms://123"]];
what would happen if it runs in ipod touch
how to target iphone user only when publish the app to the store.
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.
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 :)

Can we call one iphone app from another iphone app?

Say, that i am clicking on one iphone app icon,when launched it will create one .app file.So is it possible to call one more iphone app from that app.Or can we do something in that .app file such that it will call another app.
Yes: you need use URL Schemes:
Essentially, one app registers the fact that it handles a particular URL prefix, and then to launch that app, you have to navigate to that URL.
You can pass parameters through this URL too
If by calling another app, you mean to use other app as a service then No. One iPhone app can not communicate with another iPhone app.
The best you can do is launch another iPhone app from you app. You need to know the URL for that other app. If you want other apps to launch your app then you need to register a URL for your app so that other apps can launch your iphone app using that url.
Please note here the app will only launch if it is already installed on the iPhone. It will not automatically get it from iTunes.