Hi
I am new to iphone development.
I want to obtain string from url path
For example,
the relative path: 90-000000-General_Motors
i want to extract: General Motors
if path is 90-000000-General_Motors/5.jpg
i want to extract: 5
How can i acheive using simple coding
Edit: Not sure if this is what you really want… What is so special about “General Motors” and “5”? Why no ending in the second case? This solution would give “5.jpg”.
Edit2: Used pathComponents: instead of componentsSeparatedByString: