Creating custom a UITableViewCell with Interface Builder

Julio Barros · 59K views · 2009 · 4:28

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or following along with questions about creating custom table view cells in iOS using a nib file.

Recommended by 2 people across 2 different months, 2011 to 2011.

What it is

A short 2009 screencast showing how to build a custom UITableViewCell in Interface Builder for an iPhone (Cocoa Touch) app. Julio Barros walks through the technique and points to an accompanying written article.

What people said

Recommends Kevinflo · 2011-05 · Stack Overflow · on “Custom cell and UITableViewCell problems”

Newbie here, just learning! I'm trying to create a table view app with just three custom cells. Each cell needs to have an a label and an image on the left (so far I've only bothered with the label part). So far this guide [this video] has been very useful. I created an array with three items and got it to load just fine, but when I tried to implement a custom cell everything broke. For this portion of code: (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CustomCell"; CustomCell *cell = (CustomCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil){ NSArray *topLevelObjects =

Recommends Josh Sherick · 2011-08 · Stack Overflow · on “UITableViewCellStyle”

Yes, you have to manually create it. Watch this YouTube video [this video] for a tutorial. Also, next time you ask a question, provide a more descriptive title, and you will likely get more views and answers.

Cites Nareille · 2011-10 · Stack Overflow · on “How to stop cells from indenting - shouldIndentWhileEditingRowAtIndexPath has no effect”

I have a plain (not grouped) tableView with custom cells, and when I hit the Edit button, the cells indent. I don't want that, I want the deletion sign to lay right on top of my cell. I tried shouldIndentWhileEditingRowAtIndexPath and also cell.shouldIndentWhileEditin = NO; as well as cell.indentionLevel = -3, but both won't have any effect. Any idea why? Could this be due to my setup? I followed this tutorial [this video] , and I also tried a setup like Davyd suggested here [LINK] , but the last did not only still indent my cells, it made it even worse, as the cells were indented, when I press Done.. and I can't get the background image to cover the whole cell... So, anyone knows how to stop cus