Your code is a bit wierd, why make an UTF8String from the bundle path? You can just use the bundlePath
directly in your format:
NSString *folderPath =[NSString stringWithFormat:@"%@/myDataFolder", bundlePath];
More correct would be:
NSString *folderPath = [bundlePath stringByAppendingPathComponent:@"myDataFolder"];
This will make sure that all the correct directory separator are added.
And if you are after just one file:
NSString *folderPath = [[NSBundle mainBundle] pathForResource:@"somefile" ofType:@"sometype" inDirectory:@"myDataFolder"];
Just make sure you add the folder as a folder and not groups to you project. If you have selected groups then you can get the file path with :
NSString *folderPath = [[NSBundle mainBundle] pathForResource:@"somefile" ofType:@"sometype"];