I need to parse NSString in Objective-C.. i.e if input path string is /a/b/c/d , i need to parse the path string to get the outout like /a/b/
How do i achieve it?
input path string:/a/b/c/d
expected output path string:/a/b/
Please help me out.
Thank You.
Suse.
You could use
stringByDeletingLastPathComponenttwice:Returns
/a/b.