Is it fine to say that core data "deserializes" objects when fetching them from an persistent store?
Is it fine to say that core data "deserializes" objects when fetching them from an persistent store? ...
Is it fine to say that core data "deserializes" objects when fetching them from an persistent store? ...
How can i calculate the number of days in a year for any calendar, not just gregorian. I have tried this NSUInteger *days = [[NSCalendar currentCalendar] rangeOfUnit:NSDayCalendarUnit inUnit:NSYearCalendarUnit forDate:[NSDate date]]; but that gives me the number of days in the current month instead of the number of days in the current ...
I am looking for a subscription solution in my app where the user can use the app for free and then to be able to sync with a website he/she pays a monthly subscription fee. Right now I'm using PayPal for this but I wanted to include this into the iPhone app and therefore in app purchase subscription seems like the right way to implement...
I've made an iPhone app to be used while exercising. It plays a bell tone to indicate that you (the user) should switch from one step of your exercise routine to the next. I've designed the app so that you can listen to music on the iPod while using the app, and I want the tone to play sufficiently audibly over the music. I've gotten t...
I have an iPhone app which was built using a standard UITabBarController. This app was created using the standard XCode project template. Now, I have a requirement to change the UITabBar to look very different. The approach I decided to take was like this: in my AppDelegate: for (UIView *view in tabBarController.view.subviews) { ...
Hi, I'm having a memory leak and I have no clue where it comes from and how to fix it. At some point i calculate the distance between 2 locations. double calc = [self getDistance:location to:otherLocation]; NSNumber *distance = [NSNumber numberWithDouble:calc]; in instruments i get as leaked object NSCFNumber and it identifies NSN...
Hello. I am new to developing apps for the iPhone. I just went through the entire process the other day of properly setting up my developer account to allow me to test my programs on my physical iPod. Once I set it up though, I was not able to figure out how to get the iPhone Simulator working again. I would like to test my programs ...
Does anyone have a ball park speed comparison between a modern physical disk drive and the flash drive on iPhone/iPodTouch? What is behind this question is this: I want to pull images from the cloud, park them on the flash drive and then sequence through them as a flipbook animation keeping as few images in RAM as possible so as to keep ...
Hi everyone I have a weird memory leak with NSTimeIntervall and NSDate. Here is my code: NSTimeInterval interval = 60*60*[[[Config alloc] getCacheLifetime] integerValue]; NSDate *maxCacheAge = [[NSDate alloc] initWithTimeIntervalSinceNow:-interval]; if ([date compare:maxCacheAge] == NSOrderedDescending) { return YES; } else { ...
Hello, in my app I have a section where I load from a saved plist which has 2 nested dictionaries like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>1</key> <dict> <key>color</key> ...
I'm interested in writing an iPhone game which uses the network to allow users on different iPhones to play against each other. I'm looking for an example of a game with source code which does this. I need some simple examples and documentation. Where should I look? I'm brand new to iPhone programming. Thank you! ...
Hi there, is anybody already using Three20 URL-based Navigation with PureMVC? I am not sure where to implement the URL mapping. In the AppDelegate, Faceade, RootViewController? Thanks for helping. ...
In my AppDelegate I initiate a tabBar Controller, to which a bunch of navigationController is added as tabs. I use the following code: // Init tabBar Controller tabBarController = [[[UITabBarController alloc] init] retain]; // Init Root Views of navigation controllers FirstRootViewController* firstViewController = [[[FirstRootViewContr...
I would like to use a fixed image as the background in a simple grouped table view in my iPhone program. Unfortunately, no matter what I do, the background is always solid white. I have followed several supposed solutions on this site and others to no avail. Here is the relavant code in the viewDidLoad method of the table view control...
So I'm finding that I'm using a singleton User class to access global variables throughout an iphone app. In some cases I use the instance in almost all the methods within a class. So in the first few lines of each method I have statement such as: User *user = [User sharedManager]; This is obviously not a very DRY implementation. My...
I have an app that I need to test 3 finger touches and 2 finger touches, is there a FREE application that allows me to use 3 finger instead of being limited to only using 2 fingers like in the simulator? ...
Most of the views in my app are UITableVlews inside a UIViewController. My App feels like it's lagging when trying to scroll through the tables. I was wondering (1.) if it is better to create the cell objects in the table view, or create them at runtime and add them to the cells subview? examples: - (UITableViewCell *)tableView:(UITabl...
I am struggling with writing portion of an app which should behave like the native iphone photo app. Looked at iphone sdk app development book from Orielly which gave an example code for implementing this so-called page-flicking. The code there first created all subviews and then hide/unhide them. At a given time only 3 subviews are visi...
Please be nice.. I am a noob with this stuff. I want to allocate and use an object through a method that I call many times, and instead of making it a global variable and allocating it in my initWithFrame method I want to alloc it in just the one method, and make it a local variable that I allocate then and use then. ...
Hey, Im trying to achieve something like this NSMutableArray *myArray = [[NSArray alloc] initWithObjects: @"A",@"B",@"C",nil, retain]; NSLog(@"Array: %@, myArray); //logs A, B, C. //reverse code here NSLog(@"Array: %@, myArray); //logs C, B, A The code isn't exact, just a demo. But you get the idea. Any way to do this? Cheers, S...