Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Binju

macrumors member
Original poster
I need to parse an url
Code:
http://example.com/10/20

Here 10 and 20 are the values i need to pass.Each time the values will be changed(10 and 20).

I thought to pass the values as variable


Code:
http://example.com/val1/val2

What is the correct format for passing values?
 
Create your NSURL from an NSString created using the stringWithFormat: method. For details read the documentation.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.