multitasking

Download data in background with iOS4

时光毁灭记忆、已成空白 提交于 2019-11-26 21:04:42
问题 As per the latest update of Kindle V2.5, it has support of "continue downloading books while the app is in the background on iOS 4 devices". How is it possible to download content in background? As per the iOS multitasking documentation, only audio, voip & location updates are possible in background. And I've also maken sure that NSURLConnection doesn't download new data work while app goes background. Then how's it possible with Kindle app? Edit: I haven't checked Kindle App in iOS4

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

谁说我不能喝 提交于 2019-11-26 20:15:05
I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app? Sega-Zero You have to modify your project to support multitasking. According to WWDC 2015 video , to adopt your app for multitasking, satisfy these requirements: Build your app with iOS 9 SDK Support all orientations Use Launch Storyboards So, if any of this is not done yet, your app will not be able to support multitasking. Of course, if you don't use

Detect if app is running in Slide Over or Split View mode in iOS 9

自古美人都是妖i 提交于 2019-11-26 19:14:51
问题 In iOS 9, is it possible to detect when an app is running in iOS 9's Slide Over or Split View mode? I've tried reading through Apple's documentation on iOS 9 multitasking, but haven't had any luck with this… I ask because I might have a feature in my app that I'd like to disable when the app is opened in a Slide Over. 回答1: Just check if your window occupies the whole screen: BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication

Invalid Bundle Error - “requires launch storyboard”

末鹿安然 提交于 2019-11-26 18:45:17
问题 I keep getting this error when I try to submit my app to the store using Xcode: ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch storyboard in bundle 'com.companyname.appname.'" Anyone know what this error really means? 回答1: This is because you need to specify how your app is supposed to handle multitasking on iPad. If you don't want to handle multitasking right now, you can simply disable it by going to the "General" tab of your target: 回答2: I solved the problem

Does using Tasks (TPL) library make an application multithreaded?

五迷三道 提交于 2019-11-26 17:10:25
Recently when being interviewed, I got this question. Q: Have you written multithreaded applications? A: Yes Q: Care to explain more? A: I used Tasks (Task Parallel library) to carry out some tasks like waiting for some info from internet while loading UI . This improves my application usability. Q: But, just you have used TPL means that you have written an multithreaded application? Me: (Not sure what to say1) So, whats exactly a multi-threaded application? Is it different from using Tasks ? Tasks can be used to represent operations taking place on multiple threads, but they don't have to.

How can I run both of these methods 'at the same time' in .NET 4.5?

余生颓废 提交于 2019-11-26 15:28:12
问题 I have a method which does 2 independent pieces of logic. I was hoping I can run them both at the same time .. and only continue afterwards when both those child methods have completed. I was trying to get my head around the async/await syntax but I just don't get it. Here's the code: public PewPew SomeMethod(Foo foo) { var cats = GetAllTheCats(foo); var food = GetAllTheFood(foo); return new PewPew { Cats = cats, Food = food }; } private IList<Cat> GetAllTheCats(Foo foo) { // Do stuff, like

iOS - Ensure execution on main thread [duplicate]

≡放荡痞女 提交于 2019-11-26 15:14:52
问题 This question already has an answer here: Check whether or not the current thread is the main thread 11 answers I want to know how to call my function on the main thread . How do I make sure my function is called on the main thread ? (this follows a previous question of mine). 回答1: there any rule I can follow to be sure that my app executes my own code just in the main thread? Typically you wouldn't need to do anything to ensure this — your list of things is usually enough. Unless you're

How to handle background audio playing while iOS device is locked or on another application?

你。 提交于 2019-11-26 14:30:44
Designing a generative music system for iOS, using OpenFrameworks, I'd need to provide a mode in which the user could listen the music produced by the application when: the device is locked the user uses another application Some applications like BLOOM, or alarm clock, works like that and propose to users a switch to enable/disable this feature. Any tips for that ? Playing Background Audio An app that plays or records audio continuously (even while the app is running in the background) can register to perform those tasks in the background. You enable audio support from the Background modes

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

青春壹個敷衍的年華 提交于 2019-11-26 07:32:32
问题 I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app? 回答1: You have to modify your project to support multitasking. According to WWDC 2015 video, to adopt your app for multitasking, satisfy these requirements: Build your app with iOS 9 SDK Support all orientations Use Launch Storyboards So, if any of this

Handling applicationDidBecomeActive - “How can a view controller respond to the app becoming Active?”

限于喜欢 提交于 2019-11-26 06:08:46
I have the UIApplicationDelegate protocol in my main AppDelegate.m class, with the applicationDidBecomeActive method defined. I want to call a method when the application returns from the background, but the method is in another view controller. How can I check which view controller is currently showing in the applicationDidBecomeActive method and then make a call to a method within that controller? Reed Olsen Any class in your application can become an "observer" for different notifications in the application. When you create (or load) your view controller, you'll want to register it as an