Remove Substring from NSstring
- by user3037815
I see so many solution , but none of them was matching my problem .
As i am new to iOS development .
I have a String
abc/_api/web/GetFolderByServerRelativeUrl('Documents/Root Folder/Level 1/Level 2/Level 1-1/Level 1/')/folders.
I want to remove Remove Substring after last "/"
for example my new string should look like this.
abc/_api/web/GetFolderByServerRelativeUrl('Documents/Root Folder/Level 1/Level 2/Level 1-1/Level 1/)
Can someone suggest me the best way to achieve this , thanks ,