Xcode 4 – clang error

Apparently, you’ve set custom compiler flags for the include paths. Go to your target’s build settings and check this option: Other C flags If you have something in it, you may replace it by the -iquote version. Otherwise, still in the build settings, check the value of the following options: Header Search Paths User Header … Read more

Optimizing CLLocationManager/CoreLocation to retrieve data points faster on the iPhone

I’ve had lots of issues with CLLocationManager on the iPhone also. From different Apps, and trial and error this is what I’ve figured out; 1) Use a singleton class for the locationManager, ONLY ONE Instance, follow the examples in: Apple’s LocateMe example Tweetero : http://tweetero.googlecode.com/svn/trunk I’m thinking you can only have one location manager running, … Read more

How to display the current project version of my App to the user?

After further searching and testing, I found the solution myself. NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSLog(@”%i Keys: %@”, [infoDictionary count], [[infoDictionary allKeys] componentsJoinedByString: @” ,”]); This snipplet gave me the following output: 20 Keys : NSBundleResolvedPath ,CFBundleVersion ,NSBundleInitialPath ,CFBundleIdentifier ,NSMainNibFile ,CFBundleIconFile ,CFBundleInfoPlistURL ,CFBundleExecutable ,DTSDKName ,UIStatusBarStyle ,CFBundleDevelopmentRegion ,DTPlatformName ,CFBundleInfoDictionaryVersion ,CFBundleSupportedPlatforms ,CFBundleExecutablePath ,CFBundleDisplayName ,LSRequiresIPhoneOS ,CFBundlePackageType ,CFBundleSignature … Read more