I use code as below to get path in bundle, but I got nil, I am not sure why? can you give me some suggestion?
Code:
-(NSString *) pathInBundle:(NSString *)fullFileName {
NSString *filename = [fullFileName stringByDeletingPathExtension];
NSString *ext = [fullFileName pathExtension];
NSBundle *bundle = [NSBundle mainBundle];
return [bundle pathForResource:filename ofType:ext];
}