Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2010, 11:24 PM   #1 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default Slick's UITableView Series

I would post these here, but the last time I tried something like this, the forum limited the number of images allowed in a thread. So I'll just link to my blog.

UITableView Overview Presentation

UITableView How-To: Part 1 - View Controller Setup
UITableView How-To: Part 2 - Search
UITableView How-To: Part 3 - Multiple Sections
UITableView How-To: Part 4 - XIB-Based Cells
UITableView How-To: Part 5 - More About XIB-Based Cells
UITableView How-To: Part 6 - Inserting, Deleting, and Reordering Cells
Part 7 - ?? Passing data to sub-view controllers

More?

Updates as I write them. Feel free to post requests, but I'm not promising anything. Can't say how quickly I'm going to write the other parts, either.

Please post questions or problems about these tutorials here in this thread, and not in the blog comments. It's too hard to troubleshoot there.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.

Last edited by BrianSlick; 03-10-2012 at 08:05 PM.
BrianSlick is offline   Reply With Quote
Old 01-27-2010, 12:13 AM   #2 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Good stuff.. very detailed.
I've never use Tableview before, so this is a good reading! Thanks!
rocotilos is offline   Reply With Quote
Old 02-15-2010, 06:09 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 43
Drudoo is on a distinguished road
Default

when is the search bar coming out? could use that one
__________________
My iPhone apps!
ezyTweet - $0.99
iZky - $0.99
Drudoo is offline   Reply With Quote
Old 02-24-2010, 05:38 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Added Part 2...
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-31-2010, 02:01 PM   #5 (permalink)
iPhone SDK fanatics!
 
Join Date: Aug 2009
Location: Malaysia
Posts: 405
KennyChong is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Added Part 2...
Hi Brian, awesome stuffs. Great work! Cheers, Kenny
__________________
KennyChong
iPhone SDK Fanatic!
KennyChong is offline   Reply With Quote
Old 06-26-2010, 01:52 PM   #6 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 624
DenVog is on a distinguished road
Question Part 5?

Quote:
Originally Posted by BrianSlick View Post
Added Part 2...
When is Part 5 of the UITableView tutorials coming out?

I need to let users reorder rows in a table (this works fine now on screen), and save that order so that items are displayed in that order the next time the user comes back to the table.

I thought displayOrder was the answer, but that seems to be for Core Data only. My table is just loading up an array with the names of a bunch of plist files.

PS - Enjoyed Part 2 for Search. Much simpler and better explained than some other tutorials I've read.
DenVog is offline   Reply With Quote
Old 06-26-2010, 10:40 PM   #7 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Considering how long it is taking me to do part 3, it might be a while.

The overview presentation talks a little bit about insert/delete.

You will need to track your own sort order parameter.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-25-2010, 02:44 AM   #8 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
Kets is on a distinguished road
Default

Honestly i can't wait till you make the other 4 parts! Really!
Kets is offline   Reply With Quote
Old 08-25-2010, 07:58 AM   #9 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

I know. I'm on a self-imposed blogging ban until I get the new version of my app done.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-02-2011, 09:52 PM   #10 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Well, it's been almost year since the last update, and SlickShopper 2 still isn't done. So I'm going to stop kidding myself, and try to crank out a few blog posts.

So, part 3 is now available (changed my mind about the order). Enjoy.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-04-2011, 09:44 PM   #11 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Added part 4. Topic is bigger than I thought so I'm splitting it into 2 parts.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-06-2011, 11:19 PM   #12 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Added Part 5.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-17-2011, 05:44 AM   #13 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 99
maverick0 is on a distinguished road
Default

Good Stuff. My suggestion:

Part 8 - Connecting with SQLite for main view and sub view data sources
Part 9 - Maintaining Checklists

Last edited by maverick0; 03-17-2011 at 05:47 AM.
maverick0 is offline   Reply With Quote
Old 03-17-2011, 05:43 PM   #14 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Just had a quick look at the 5th part of your tableview tutorials. They indeed look very confusing, and would do so even more for someone new to iPhone Development.

I just wanted to share an easier way of creating custom tableviewcells.

1. Declare a cell in the .h. (IBOutlet)
2. Create a UITableViewCell in IB.
3. Hook up any IBActions to buttons/labels etc... Save & Quit.
4. Create if statements in the cellForRowAtIndexPath method. These if statements would determine what cell has what text in its labels.
5. Return that cell for the indexPath.

Does that seem easier, and are there any faults with this method?

iSDK
iSDK is offline   Reply With Quote
Old 03-17-2011, 05:50 PM   #15 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

What distinction are you making compared to what I showed?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-17-2011, 05:57 PM   #16 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Im just trying to convey that my way would initially be quicker and faster, but your way is a lot more detailed and a lot more in depth, but a lot more difficult.
Quote:
Originally Posted by BrianSlick View Post
What distinction are you making compared to what I showed?
iSDK is offline   Reply With Quote
Old 03-17-2011, 05:58 PM   #17 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

No, I mean, what's different? You seem to be describing what I did.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-22-2011, 09:34 PM   #18 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

I genuinely would like to know what is faster about what you are suggesting. I'm always interested in better techniques.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 04-06-2011, 06:55 PM   #19 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Mission Viejo, CA
Age: 30
Posts: 271
Brandt is on a distinguished road
Default

May I suggest a section detailing exclusive selection with a checkmark accessory?

I see many posts where people mention the repeating checkmark problem for re-usable cells, with no definitive answer...
Brandt is offline   Reply With Quote
Old 04-06-2011, 07:00 PM   #20 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Yeah, I can do that. But a quick summary:

Code:
if (cell == nil)
{
   // Do anything that will be the same on EACH cell here
}

// Do anything that could be different on each cell here.

return cell;
For the second part, you have to assume that the cell you are getting is incorrectly configured, and then take steps to re-configure it. If you are only doing if (whatever) {checkmark}, then you aren't making the proper assumptions. It needs to be an if/else case. if (whatever) {checkmark} else {no checkmark}.


iSDK> Can I assume the reason you've never responded is that you realized you were talking about the wrong post, and were in fact describing exactly what I showed?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 05-12-2011, 07:45 AM   #21 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 1
bjornst is on a distinguished road
Default Mix tableview with other things in the same view

I'm pretty new to the iphone development and i have question about tableviews.

I need to build a start view witch is build like a profile. This is a tabbar app and when the user has logged in the person will see his photo and name and so on. This will take about 30% of the screen. Then i want to add a tableview below that. This tableview will display a RSS feed with the latest news from a site in it. So is it possible to mix this or should i try to use a 2 section tableview instead? Where i design the first section to hold the info about the profile with picture then the 2nd section that will display the RSS feed?

Best Regards

Bjorn
bjornst is offline   Reply With Quote
Old 05-12-2011, 10:06 AM   #22 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

That's a design decision. The only thing the table view cares about is the data that you make it care about.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 01-11-2012, 05:07 AM   #23 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 60
Jules is on a distinguished road
Default

I also have a question: Could you please either make a tutorial or give a short explanation on how the navigation bar works? The Tutorials that are out there are mostly not really helpful, because they are way too old. As you may have guessed I'm having problems adding a back button to my navigation bar which is a little bit frustrating.
Jules is offline   Reply With Quote
Old 01-11-2012, 07:13 AM   #24 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Navigation controllers haven't changed significantly ever, and they haven't changed at all since iOS 3. So there really isn't such a thing as an outdated navigation controller tutorial.

They also are not inherently related to table views in any way, so I'm not sure why you chose to bump this thread.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 03-10-2012, 08:00 PM   #25 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Added part 6.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 323
6 members and 317 guests
2Apps1Day, akacaj, SLIC, soohyun, Techgirl-52, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,114
Posts: 402,886
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0