Posted by: bcaccinolo on: December 28, 2010
On an UIView containing an UITextField, if you want the keyboard to appear when the view is displayed, you have to send the message becomeFirstResponder to the UITextField of the View like this: – (void)viewWillAppear:(BOOL)animated { [myTextField becomeFirstResponder]; }
Posted by: bcaccinolo on: November 14, 2010
I found recently a nice lib easily converting XML to NSDictionary. The code is now on GitHub. Here are the key ideas: XML elements map to key names in the dictionary Each element corresponds to a child dictionary Attribute key-value pairs are added to the element’s child dictionary Strings from text nodes are assigned to [...]
Posted by: bcaccinolo on: September 28, 2010
When developing for iPhone, the IDE coming in mind is XCode and it’s a good thing cause XCode is a good piece of software. I use XCode everyday but I never found the search functionality good enough. That’s why I switched to ack-grep. It’s a little perl script way faster than grep or any other [...]
Posted by: bcaccinolo on: September 15, 2010
Once your iPhone application is done, it is good to check the possible memory leaks who could cause your application to crash. So here is a the list: Leaks application that can be found in Xcode: run -> Start with Performance Tool -> Leaks Apple’s Instruments utility that can be found in /Developer/Applications/Performance Tools Clang, [...]