use SubstringTOIndex
& SubstringFromIndex
functions of NSString
. Where SubstringFromIndex
gives you the string
from the index which you passed & SubstringToIndex
function gives you the string
upto the index which you passed.
Also try substringWithRange
function which returns you the string
between the range which you passed.