NSLog(@”m_path: %@”,m_path);
NSString* fname = [[m_path lastPathComponent] stringByDeletingPathExtension];
NSLog(@”fname: %@”,fname);
NSString* fname2 = [m_path lastPathComponent] ;
NSLog(@”fname2: %@”,fname2);
[/phph]
reslut
2012-08-01 18:08:15.895 aqua[2691:c07] m_path: http://192.168.199.139:10101/sdcard/InTheMood.mp3
2012-08-01 18:08:21.613 aqua[2691:c07] fname: InTheMood
2012-08-01 18:08:23.481 aqua[2691:c07] fname2: InTheMood.mp3
fname_ext: mp3