How to pass values through url

Discussion in 'iOS Programming' started by Binju, Feb 14, 2010.

  1. Binju macrumors member

    Joined:
    Jan 31, 2010
    #1
    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?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Create your NSURL from an NSString created using the stringWithFormat: method. For details read the documentation.
     

Share This Page