These are chat archives for codefellows/sea-c24-iOS-F2

24th
Nov 2014
Andrew Michael Potter
@AMPotter
Nov 24 2014 01:09
Can I maybe buy someone a coffee in exchange for a little help tomorrow?
John Leonard
@cwnidog
Nov 24 2014 01:10
Sorry Andrew, I’m working, but is there anything in particular?
Andrew Michael Potter
@AMPotter
Nov 24 2014 01:53
I've got my plist all ready to go, but I'm still trying to switch my cells over to custom cells, and I've got this weird overlap. My original cells are still there, and my custom cells seem to be on top of them when I click on the cells? And the segue to my detail view no longer works.
I'm sure it's an easy fix. I might just start the tableview over from scratch.
Sometimes that's easier than converting everything over.
John Leonard
@cwnidog
Nov 24 2014 02:07
You’re right on starting back from scratch. I had a similar problem and did the same thing. I think that the storyboad links are kind of fragile sometimes. One thing that you might want to do is set he values in your custom cell to be same as the ones you use in the DetailTableView.
Andrew Michael Potter
@AMPotter
Nov 24 2014 02:15
Thanks John, I'll give that a try
John Leonard
@cwnidog
Nov 24 2014 02:31
Just to be clear, I meant set them to hold the same data as you put into your DetailTableView, different objects, of course.
Ryan Christensen
@randhyllcho
Nov 24 2014 03:10
@AMPotter I'll be down at CodeFellows tomorrow evening probably around 6-ish. I'm not sure how much help I'll be, but I've broken this app three ways from Sunday and have still managed to fix it. I have some layout issues that I can't figure out. Hopefully @kpham13 can help me out with that.
Andrew Michael Potter
@AMPotter
Nov 24 2014 05:19
@randhyllcho Awesome! Hopefully I'll have figured it out by then, but I have a habit of breaking things further as I try to fix them, so I'd love a second pair of eyes to check out my code.
codeCaster
@EricMentele
Nov 24 2014 06:05
I will be there too around the same time. This last part is rough.
Kevin Pham
@kpham13
Nov 24 2014 08:00
What do you guys mean by custom cells? Like nib files? or adding labels/image views to your prototype cells?
codeCaster
@EricMentele
Nov 24 2014 14:48
Labels, images, etc added. Have not gone over nibs.
Kevin Pham
@kpham13
Nov 24 2014 15:52
If you're not assigning anything to the cell's text or other properties, it should be blank. Make sure you create outlets for the elements you drag into the prototype cell.
John Leonard
@cwnidog
Nov 24 2014 16:37
Kevin, a custom cell is just a UITableViewCell that’s had some elements placed on top of it, e.g. text fields and an image. We do assign text and image contents to the elements. And Andrew - breaking things further when you try to fix them is a proud programming tradition.
Kevin Pham
@kpham13
Nov 24 2014 16:46
You guys should try to isolate the issue and fix it sometimes rather than starting from scratch. It would get impractical when you start over when you have tons of code. Part of your coding journey should be learning to debug
:P
John Leonard
@cwnidog
Nov 24 2014 22:48
Andrew, my best advice is to make sure that your outlets and IBActions are good and then look for typos. When you’re letting an IDE do autocompletion, it’s very easy to call a method that looks alot like what you intended, but may have a slightly different name or take slightly different parameters.
Andrew Michael Potter
@AMPotter
Nov 24 2014 23:41

I haven't deleted everything yet, so I'm definitely gonna try converting instead of restarting first. I'm talking about adding the UIImage for the person's icon photo, and the labels for their name and student/teacher status.

Like, I got this weird thing going on where my old cells are underneath my new custom cells, which only show up when you click on the cell. And then the label and UIImage just show up on top of the existing text from the old cells.