zamza726 on 05/17/11
Last Edited at 05/17/11 09:35pm
- (NSString *) loadFilePath:(NSString *)fileName { NSArray * rslt = [fileName componentsSeparatedByString:@"."]; if ([rslt count]!=2) { return; } NSString * fileTitle = [rslt objectAtIndex:0]; NSString * fileType = [rslt objectAtIndex:1]; NSString *filepath = [[NSBundle mainBundle] pathForResource:fileTitle ofType:fileType]; return filepath;}
Report this snippet Tweet
Comment:
You need to login to post a comment.