+(NSString*) GetFileName:(NSString*)pFile
{
NSRange range = [pFile rangeOfString:@"/"options:NSBackwardsSearch];
return [pFile substringFromIndex:range.location + 1];
}
+(NSString*) GetFileName:(NSString*)pFile
{
NSRange range = [pFile rangeOfString:@"/"options:NSBackwardsSearch];
return [pFile substringFromIndex:range.location + 1];
}
本文标题:IOS从路径中获取文件名
本文链接:https://www.haomeiwen.com/subject/cbqlettx.html
网友评论