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
Post a Comment