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

iOS

Help with 1 really small problem

i fixed my other problems but in the create your own destroying messaging app. I have an error with the line self.videoFilePath = [[info objectForKey:UIImagePickerControllerMediaURL] path]; It says implicit conversion of C pointer type 'CGPathRef (aka 'const struct CGPath *) to Objective-C pointer type 'NSString *' requires a bridged cast. What does this mean?

3 Answers

replace

self.videoFilePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];

with

NSURL *imagePickerURL = [info objectForKey:UIImagePickerControllerMediaURL]; 
self.videoFilePath = [imagePickerURL path];

see the teachers notes section of [this video] for more info. also check out this forum post

do you mind if i forward you my project. for some reason when i run it. the username i click selects the one below the 1 i click and i cant find the error. Additionally, when i press cancel button if i want to cancel sending a photo it is supposed to clear the list of recipients i had checked off. I think the two problems are related. Could you check this out for me

sounds like you probably implemented didDeselectRowAtIndexPath instead of didSelectRowAtIndex path. check that first and if its not that ill take a look

that fixed the check mark problem but now when i press the cancel button it doesnt clear the list of check marks like it should