‘UITableView’

Grids in a UITableView?

Thursday, March 25th, 2010

As I explained a few posts ago, one of the reasons I’m firing this site back up is to help fellow developers, programmers and fermentors find answers to their questions.  I spend a good chunk of my day both at home and work Google-ing how to do this or that.

This quick post is to give a little shout out to TJS over at dewpoint.snagdata.com.  In particular, their post titled, Drawing a Grid in a UITableView.  I had a similar experience to the author when I started trying to figure out how to display tabular data within a UITableView.  It seemed like a grid system should be built in, but alas, it was not.  I tried inserting tabs, messing with alignments but nothing really worked.  I considered inserting individual labels into the cell, but I wasn’t sure how to go about it.

After searching for what seemed like an hour, I couldn’t find anything.  Finally, I happened upon TJS’s solution and immediately knew I had found what I was looking for.  After tweaking the label’s size, font color and setting the background color to ‘clear’, I was in business.

So, besides keeping the authors info intact in the file headers, I wanted to give an internet high five and maybe in doing so, help the post get a better positioning in the Googles.  If anyone is having any issues with their Objective C code, feel free to hit me up on Twitter, @mhokie.  I’m by no means an expert, but I’ve learned a few things in the last year or so.

About

mhokieAs a computer science nerd, I enjoy dabbling in all things related to web development and programming. Be it wrangling HTML/CSS across several browsers or harnessing the power of Objective-C while developing iPhone Apps, I enjoy a challenge.

I've recently become a champion of fermentation and all the great things it can do for your body. For the last year or so, I've been dabbling in sauerkraut, kimchi, mead and beer.

My goal for this site is that by posting information regarding my experiences, it will help others where the internets have fallen short. If you have any questions, feel free to contact me, or find me on twitter, @mhokie.

Sponsors

Archives

Categories

Blogroll