iOS: popover on iPhone app - ios

In my app for IPHONE I use a popover but I don't know if my app will be reject if I use this element in iPhone app and not in iPad app; do you know if I can have this problem?
thanks

This is no problem and there are many apps having that feature but you need to code it yourself that popover function is not available for iPhone. A app I often use that has that feature is called Week Cal.

Apple can reject for anything. However that being said I have seen numerous applications for iPhone that use custom popovers. Facebook app is just one example. You should be fine as long as you don't use any private API's

Related

How can i trigger my iphone application to launch from my mac app

I want to launch my app on the device (if App available) using the USB\Wifi\Bluetooth connection from my mac app.
How can I achieve this functionality
That is NOT possible. You can't do it using any public API. Though i am not aware of any private API that facilitate this types of functionality.
This is iPad control Mac's touch bar demo:
TouchBarDemoApp Allows you to use your macOS Touch Bar from an iPad (through USB connection) or on-screen by pressing the Fn-key.
Mac control iPhone:
iTunes Mac app can get the iPhone's screenshot and edit iPhone's apps.
Xcode can launch iPhone's apps when you debug ShareExtension.
So I think there are some methods to achieve your function. But I don't how to achieve. Maybe its private.
As already posted, you cannot directly launch an app.
But you can make your App show up on the lock screen as well as the task switcher so it can be opened with one click. This feature is called Handoff.
Here is the usage description for the end user and this is the programming guide on how to implement it.

Can I enable/disable mobile data from my iOS app?

I want to make a today extension for iOS. In the storyboard I want a switch that turns on or off my mobile data on my iOS device. Does anyone know if that is possible?
No you cannot. However, you can use an alert view that takes the user to the device settings:
UIApplication.sharedApplication().openURL(NSURL(string:UIApplicationOpenSettingsURLString)!)

IOS different app icon depending on the device used

I can already detect which device is being used by the user (from iPhone 4 to latest and also the iPad etc.) my question is, is there any code or method for me to change the app icon depending on the device used?
No, You can't do this.
However you can add different images for different resolution, but Apple won't approve your app.

Watchkit - what exactly should the iPhone app (not the extension) contain?

I don't have a watch so i only work with the simulator.
Let's say i have three apps - one that displays an animation on screen of the watch(several pictures animated) and a few options , also on the watch.
Another one that displays some strings on the watch app , another that displays images on the watch app - both the strings and the images are changed when the user clicks a button.
The code resides on the extension and the resources (images) on the watch app.
Now - what should the iPhone app/screen contain? I want to make the apps as stand alone as possible. Does it need to have an install button or when the user installs it from the app store - the watch app is automatically installed and he can access it from the watch?
I was thinking of only displaying this on the iPhone app/screen : Thank you for downloading the app OR Welcome! and a picture.
Would that be all right according to apple guildelines? What would you advise that the iPhone app/screen should have? Or better yet what do the guidelines suggest?
Should i also include a button for launching the app? What should i include at the minimum? Also what would the code for that look like in swift/what connections should there be?
I am interested in making the watch app experience as stand-alone as possible (can't use watchos2 because i can't publish with Xcode beta).
Lastly - would i need to include an exit button in the watch app (i currently have 2 : next and random for displaying some images)?
Thanks a bunch.

How iAd searches for content to display?

I have an iPhone app that implements iAd. In debugging mode everything works fine and I'm showing the test advertisement correctly on simulator and on device with no particular logs or errors.
The app was approved and it's in the app store, but is not showing any ad.
I show the iAd in a UIview with lots of textual content, but in Italian (don't know if language matters, btw the app is available in all the app stores).
I wonder how iAd search for content and then displays related banners and how I can somehow "force" content by passing (if possible) tags or predefined content.
Any idea?
I simply forgot to add my app to the iAd service.
I needed to upload a new version in order to fix this.
Let's wait for apple approval.
Thanks!

Resources