Is it possible to opt your iPad app out of multitasking on iOS 9

To opt-out (disable) multi-tasking for your application: Select your Target → General Section → Scroll Down and check Requires full screen It gets applied to the plist’s UIRequiresFullScreen key value. Note: Apps are required to support all screen orientations if it supports multitasking. Otherwise, apps will get the following error on publishing: Invalid Bundle. iPad … Read more

CSS media query to target iPad and iPad only?

Finally found a solution from : Detect different device platforms using CSS <link rel=”stylesheet” media=”all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait)” href=”ipad-portrait.css” /> <link rel=”stylesheet” media=”all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape)” href=”ipad-landscape.css” /> To reduce HTTP call, this can also be used inside you existing common CSS file: @media all … Read more

Detecting UIScrollView page change

Use this to detect which page is currently being shown and perform some action on page change: – (void)scrollViewDidScroll:(UIScrollView *)scrollView { static NSInteger previousPage = 0; CGFloat pageWidth = scrollView.frame.size.width; float fractionalPage = scrollView.contentOffset.x / pageWidth; NSInteger page = lround(fractionalPage); if (previousPage != page) { // Page has changed, do your thing! // … // … Read more

What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS) applications?

Apple lifted the restrictions on non-Objective C/C/C++ apps — you just can’t load code that isn’t in the app bundle. MonoTouch lets you use .NET languages — C# is directly supported, but if you have Windows, you can make assemblies in any .NET language and use it. There are rumors that Apple is going to … Read more

How to get the scroll bar with CSS overflow on iOS

Edit following the comment left, kindly, by kritzikratzi: [Starting] with ios 5beta a new property -webkit-overflow-scrolling: touch can be added which should result in the expected behaviour. Some, but very little, further reading: Native momentum scrolling in iOS 5 Original answer, left for posterity. Unfortunately neither overflow: auto, or scroll, produces scrollbars on the iOS … Read more

Save images in NSUserDefaults?

To save an image in NSUserDefaults: [[NSUserDefaults standardUserDefaults] setObject:UIImagePNGRepresentation(image) forKey:key]; To retrieve an image from NSUserDefaults: NSData* imageData = [[NSUserDefaults standardUserDefaults] objectForKey:key]; UIImage* image = [UIImage imageWithData:imageData];

Share data between two or more iPhone applications

In the sandboxed world of iOS development sharing data between applications can prove difficult Since iOS developers can’t share data directly through the file system, they need to find alternate solutions for their applications. Some common solutions include: UIDocumentInteractionController UIActivityViewController Shared Keychain Access Custom URL Scheme Web Service iCloud API UIDocumentInteractionController: Allows the user to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)