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 trialshengyeong chia
3,093 PointsWarning: Attempt to dismiss from view controller <UITabBarController: > while a presentation or dismiss is in progress!
Facing warning as per title when trying to add recipients for photo uploads and when trying to exit the add recipients tab through "Cancel".
-
(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self.tableView deselectRowAtIndexPath:indexPath animated:NO];
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; PFUser *user = [self.friends objectAtIndex:indexPath.row];
if (cell.accessoryType == UITableViewCellAccessoryNone) { cell.accessoryType = UITableViewCellAccessoryCheckmark; [self.recipients addObject:user.objectId]; } else { cell.accessoryType = UITableViewCellAccessoryNone; [self.recipients removeObject:user.objectId]; } }
...
-
(IBAction)cancel:(id)sender { [self reset];
[self.tabBarController setSelectedIndex:0]; }
Here is a link to my dropbox for the code Ribbet [https://www.dropbox.com/sh/ugc69gqukc4hhpb/AADgMYUyx8wSlR9QXblzz-pga]
The codes are located in "cameraviewcontroller.m". Breakpoints have been added.
Not sure what is the issue.
1 Answer
landonferrier
25,097 PointsShengyeong, here is a full template for the social network application: Click Here.