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

Ribbit App can't differentiate between fileType using Xcode 5

The application is fully coded. the problem is:

NSString *fileType = [self.selectedMessage objectForKey:@"fileType"]; if ([fileType isEqualToString:@"image"])

&

NSString *fileType = [message objectForKey:@"fileType"]; if ([fileType isEqualToString:@"image"])

always goes to the else, it cannot recognise the @"Image" as a fileType. i went through all of the files and tried to figure it out but unfortunately no luck till now.

please note that i am using Xcode 5 while the tutorial is using Xcode 4.

1 Answer

i figured it out. typo mistake in the string @"fileType" it is defined as "filesType". i feel stupid lol :)