I'm testing my app with iOS 4.2 with multi tasking. With the ability to have many apps running I was wondering what some patterns and practices were for handling low memory warnings in your apps.
Handling low memory
(2 posts) (2 voices)-
Posted 1 year ago #
-
I don't know of any special practices, besides taking care that no memory leaks. Sparrow will automatically free some cached temporary objects (points, rectangles and matrices) when a memory warning occurs. That's what these lines in the app scaffold are for:
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { [SPPoint purgePool]; [SPRectangle purgePool]; [SPMatrix purgePool]; }So, if you've got any objects that you don't really need, but are just cached for performance reasons, you can delete them, too. However, in most cases, you just need the majority of the memory you've allocated, so there's not much you can do.
Posted 1 year ago #
Reply
You must log in to post.