Quick way to find current language .
NSString *language = [[NSLocale currentLocale] objectForKey: NSLocaleLanguageCode];
NSString *countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];
Got it from Stackoverflow Putting it here for reference.
Downloaded and installed ios4.1 beta about 2 weeks ago. Tried it out with the beta Xcode. Sad to find out this wreck my testing and deployment for production code.
Did a search and found ways to restore iPhone to another image. Followed the instructions and reset my deployment target to ios4.0.2. Everything works out except for my iPhone backups and settings. Need to sort out that but it’s minor.
http://www.demonoid.com/files/details/2271749/009063673263/
http://www.iclarified.com/entry/index.php?enid=750
Thanks to the good guys at iClarified who maintained the list of previous iPhone firmware file.
no multi-tasking! also heard that iOS4 takes up lots of memory. no wonder, my app is facing problem. really need to optimize the app in terms of memory access and usage.
just did a massive update to the xcode, itunes and iphone to the latest.
first thought is slow for mapkit rendering.
second is that compiling is much tighter now. what used to work for iPhone OS 3.13 doesn’t work for iOS4 for some cases, especially the memory intensive stuff for some Coredata calls that I made earlier. Need to optimize or remove some of the fetch. Seems like iOS4 is quite adamant on memory.
also, need to rework some of the google docs code that import into coredata.
was able to import earlier, not was busted.
did like the compiler and some enhance debugging tools in xcode.
looks like got lots to clean up and debug for version iOS4
Even though iPhone OS 4.0 beta 3 just release, I myself not in a habit to using beta. Been using 3.1 for quite some time and getting used to it.
Like the static analyzer and now it compiles faster than before. Using LLVM GCC4.2 compiler and like it much for the speed. Shows potential bugs which I need to optimized.
Was looking through the dev docs and trying to learn more about it. Guess what?
The Address Book classes doc are not updated. Have to search for the Address Book Programming Guide for iPhone OS in the net. This is much better doc as compared to the online xcode dev doc.
Now to work on that address book.
p.s
There are two Address Book API. One for MacOS X and the other for iPhone OS. The API for iPhone does provide the basic functionality that I need. However, I really want some functionality catered for MacOS X.