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

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply