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

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)!)

Related

iOS - Show View when phone is locked

I'm building an ios app with an alarm feature. I would like to show a view when phone is locked. I want to look exactly like on iOS alarm. If you're an iPhone user try to alarm and locked your phone you will get what i'm talking about. Is it possible? If possible how?
Thanks in advance.
iOS doesn't provide apps that kind of access to the lock screen (or any screen not in your app), so it's impossible to make it exactly like the iOS native alarm. The closest you can get is sending notifications to simulate an alarm, which are visible on the lock screen

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.

Remote access of an iOS app

I want to get remote access of my iOS app running on one iPad in another iPad. Is there a way in iOS SDK to achieve this?
Any help would be highly appreciated. Thanks
No, there's not. You can mirror the screen to another device using AirPlay, but there is no way to "drive" the device remotely. (There's an app called "Reflector" that lets you mirror you iOS device onto your Mac, but it's view only.)

How to open settings page of iphone throgh my app?

Actually, I have a button on my app. If user click on it they will see the general setting page of iPhone. Is it possible for iOS 7 or iOS 7.1? If so then how?
You cannot do this, till now no api provides.

iOS: popover on iPhone app

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

Resources