NSString get file name, Ext

August 2, 2012   ·   0 Comments

Screen Shot 2012-08-01 at 6.11.00 PM

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

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
iOS Tutorial9

Amazon

adsbygoogle

Recent Posts

Categories

Amazon