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.
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.
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.
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?
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
What distinction are you making compared to what I showed?
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?
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?
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.
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.