Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Luke Terzich
5,193 PointsHELP Recipients stay checked upon "Select Friends to send to" screen inside ribbit app
Hello, sorry its late and I'm confused so i hope to make sense haha.
When i login to my ribbit app i go to send an image (i take the image) hit send and send it too User1.
I take another photo straight after and when i come to select the recipients User1 is already checked!
Inside my code i have the -(void)reset which removes all objects from the recipients list but the accessory type check doesn't disappear (although the recipients list is empty)
4 Answers
Stone Preston
42,016 Pointsare you reloading the table view in your reset method?
Luke Terzich
5,193 PointsIm not mate,, inside the reset method i literally just have:
- (void)reset { self.image = nil; self.videoFilePath = nil; [self.recipients removeAllObjects];
}
The reset method is called when the image/video pass the checks Should i reload the table? Thanks in advance pal
Luke Terzich
5,193 PointsUpdate: Have just added [self.tableView reloadData]; to my reset method and it still isn't working correctly, when i select the recipients list - the previously selected recipients are still selected (but their Ids are not being stored)
Luke Terzich
5,193 PointsUPDATE: ALL FIXED!
if anybody else is having this problem i simply added:
if(cell.accessoryType == UITableViewCellAccessoryCheckmark)
{
cell.accessoryType = UITableViewCellAccessoryNone;
}
to my "CellForRowAtIndexPath" method! This checks to see if the box has a checkmark and if it does it will delete it!
FINALLY SORTED!