Posts

Showing posts from 2011

XCode4: UITabBarController with UINavigationController using Interface Builder

Image
If this helped you, please consider downloading my FREE  iPhone app " Hydrate Yourself "and leaving a review. There are a  whole   bunch  of  tutorials  to create a Navigation Controller inside a TabBarController with XCode3.  But there are a number of small changes in XCode4 which can trip up someone not familiar with them.  So this guide is essentially an updated version of those other guides, designed to create the same simple demo using the new tool. 1. Create a new Project We are going to start with a Tab Bar Application, so go ahead and create a new project as usual. I'm calling mine Navigation Tab Bar. 2. Select the Tab Bar Click MainWindow.xib and you should see the integrated Interface Builder. On the left is a section called Objects, select the Tab Bar Controller. 3. Add the Navigation Controller On the right side of your screen click the Utilities box. This is new in XCode4 and should look familiar if you've been...

Vim Search for Tags File

I use ctags with vim. This works great when the tags file is in the same directory as the files I'm working on, but is a chore when projects have nested directories. Add this to your .vimrc file and the recursive search up the directory structure will be done for the tags file: set tags=tags;/

Why Hydrate Yourself?

This is a short essay about why I decided to create " Hydrate Yourself ". It is a free app for the iPhone, iPod touch and iPod which tracks water intake and helps encourage a healthier lifestyle. According to webmd.com [ 1 ] and the US National Library of Medicine [ 2 ], symptoms of dehydration include: Dizziness, Lethargy, Lightheadedness, Headaches, Fainting, Weakness and (naturally) a Dry mouth. Other symptoms even include heart palpitations (that feeling of your heart jumping or pounding). So why is it that water intake is such a secondary concern to so many adults? All it takes is a little attention throughout the day, such as keeping track of how much water you are drinking or carrying a water bottle with you at all times. I strongly believe that drinking enough water is one of the easiest ways to improve your health. But how much water is enough? Its hard to say, since so many foods we eat every day contain water. Common "rules of thumb" include 8-10 gl...