Good tip from iOS Developer Tips for using the “Related Files” button in the upper left corner of your code window (right next to the Back/Forward navigation buttons): Xcode 4 : Related Files List With Xcode 4 you can quickly access an assortment of files related to your project through the Related Files option in […]
Nice rundown on Xcode 4 Code Snippets: Xcode 4 Code Snippets – Speed of Light Xcode 4 Code Snippets ? Perhaps my favourite feature of Xcode 4 is the Code Snippets feature. It allows you to use common bits quickly in your code, instead of requiring you retype them over and over again.
For the longest time, to perform a search in Xcode I would take a standard, yet uninformed, approach by selecting a desired region in my code, copy it to the clipboard with Command-C and then perform a Command-Shift-F to find all instances of the search in my project. Cool. Then after a while I actually […]
Handy tip of the day: To scroll to the top of a UITextView, simply use the following method: [textView setContentOffset:CGPointMake(0.0, 0.0) animated:YES]; Hope it helps!
One of the more annoying things about iOS is its notification system. Modal alerts are so arcane, intrusive and annoying, I am actually shocked that they are still the standard method of notification in iOS as of version 4… Looks like there are some underground movements (requiring jailbreaking, of course) to change that. Here’s a […]
Thanks to Jeff LaMarche for this. iPhone Development: Attributed Strings in iOS: Ten months ago when the original iPad shipped, Apple released iOS 3.2, and for the first time, iOS developers had access to NSAttributedString and NSMutableAttributedString, objects designed to hold strings along with font, paragraph, and style information. We no longer had to resort […]
It was time to clean house a bit, so I wanted to remove all the currently installed applications in the iPhone Simulator. Turns out there’s a very simple way to do it… 1. With the iPhone Simulator running, click on the iOS Simulator application menu. 2. Click “Reset Contents and Settings…”. – A confirmation dialog […]
I ran into an interesting problem today. It was really basic and embarassing, so naturally I figured I’d go public with it… Typically I use the alloc–initWithFormat–release way of creating strings, but today I used the NSString stringWithFormat factory method to generate a new NSString. Of course at the end of my method that was […]