objective c - NSScanner scan a string from end -


i have filename wo.no 193 , task no 15146.jpg. want split out extension filename. can tell how nsscanner, there other way using scanner. if please let me know solution.

there methods in nsstring that:

nsstring *fn = @"wo.no 193 , task no 15146.jpg";  nsstring *basename = [fn stringbydeletingpathextension];  nsstring *extension= [fn pathextension]; 

so no need use scanner, unless have other requirements.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -