Memory warning when I go to google Images
Has anyone experienced something similar? When I google 'red' and select
images everything is fine. But when i select one of the images i get a
memory warning. And the functionality of the app goes to hell from there.
this is how i handle my URLCache in my app delegate
int cacheSizeMemory = 4*1024*1024; // 4MB int cacheSizeDisk =
32*1024*1024; // 32MB NSURLCache *URLCache = [[NSURLCache alloc]
initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk
diskPath:@"nsurlcache"]; [NSURLCache setSharedURLCache:URLCache];
and
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo { DLog(@"Hello");
NSString *alertText =userInfo[@"aps"][@"alert"]; UIAlertView *alert =
[[UIAlertView alloc] initWithTitle:@"Received a remote notification"
message:alertText delegate:nil cancelButtonTitle:@"OK"
otherButtonTitles:nil]; [alert show];
Any help or direction to research would be really helpful. Thanks
No comments:
Post a Comment