Does anyone know of any code to enable or mainly disable the Multitasking Gestures in iOS 4.3?
There is no public API to access or set this information.
I think the multitasking support is enabled/disabled from the Settings app, it doesn't look like there is support to change this setting programmatically.
You would probably access this via UIDevice* device = [UIDevice currentDevice];... but as you can see from the docs, there is no access to anything like this property.
Related
In iPhone, how to override default setting of vibrate and sound programmatically?
You cannot do that unless your doing it for a jailbroken device. Apple will not accept programmatically changing the phone settings. This is ultimately user preference.
I think You cannot(May be Possible if your application is run on a jailbroken device). Because there is no Apple API to access the iPhone settings. But you can Change the setting in your app Bundle.For Vibration You can Go with
#import <AudioToolbox/AudioServices.h>
and use
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
for Volume you can Go with
AVSystemController
[[AVSystemController sharedAVSystemController] setVolumeTo:10.0 forCategory:#"Ringtone"];
Try this SO Question
and the Best will be however use MPVolumeView (volume slider) is there to change device volume but only through user interaction.
MPVolumeView is a control in toolbox, you need to add MediaPlayer.framework in your project then MPVolumeView will be displayed in toolbox in interface builder.
How can i place my application icon on the lock screen of the iphone programmatically(something like the default camera button next to slide lock). Is it possible ? If so can any one guide me on this ??
EDITED
Hi all.. thanks for replies.. after seeing your replies i understand that this is not possible and its possible in jailbroken devices.. or is it possible to invoke my application through some gesture on lock screen ???
I dont think it is possible. I understand you want to implement something like android interface, but apple has its UI standards and has restricted access to that.
For Jail broken Device:
I'm not sure whether it work or not.
Please check these links:
You Tube 1
You Tube 2
Note : Possibly it is for Jailbroken devices. Also I didn't checked these video's because it's restricted in our company :(
This is not possible as Apple does not allow that.
i am developing an app for iphone and ipad with 4.0 as base SDK and 3.0 as target.
how to enable multitasking to this app.
thanks..
To adopt Multi-Tasking in your app. apply the following points:
Support all orientation from the target's General section in settings.
In the General section too. remove the check next to Requires full screen if any.
Select storyboard, click the File Inspector icon in the right side bar. check the box next to Use Size Classes. Check out tutorials how to use size class to adjust your views according to the screen size assigned to your app.
Refer http://answers.oreilly.com/topic/1867-how-to-update-your-iphone-app-for-multitasking-with-ios-4/
Also duplicate question how to do multitasking application in ios 4.0
If you build an iOS app using a 4.x SDK, Apple's "multitasking" will be enabled by default, unless you explicitly add a plist key to prevent it.
But multitasking may not work properly unless you add support for it in the app's resign/become active, and/or app's suspend/resume delegates.
If you actually want to run code in the background, then your app needs to be of a few very specific types, or add support for running some code for a very limited amount of time, for which you probably want to read Apple's documentation.
My application requires multi touch, so I was checking the documentation and could't find the property to require multi touch. Do all versions of iOS devices support multi touch or I am missing something?
Thanks in advance
There is no need to configure that. Every iOS device in existence (including the first-gen iPhone) supports multi-touch (unless its screen is defective). A pinch gesture, for example, is considered a multi-touch gesture, and is found in built-in apps like Maps and Mobile Safari.
How to disable the multitouch capabilities in new iPhone application?
Multi-touch tracking is not enabled by default, so in effect you need not do anything. See "multipleTouchEnabled" in the documentation for UIView.