Can't get NSURL corresponding to some NSString

Discussion in 'iPhone/iPad Programming' started by erritikamathur, Nov 29, 2009.

  1. macrumors newbie

    Joined:
    Sep 23, 2009
    #1
    i m using NSURl method + (id)URLWithString:(NSString *)URLString to get url corresponding to given string.bt i m getting null as result.
    Actually i need to created NSURLRequest corresponding to tht url.

    So cn some please help tht how cn i get url corresponding to string
    im passing for example following string
    NSString *sender=@"http://sound13.mp3pk.com/indian/7days/7days01(www.songs.pk).mp3";

    for some string i m getting corresponding nsurl but not for some.

    Thanks in advance
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    How is the issue different than the one you asked about in this thread you started?
     
  3. macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #3
    Have you already declared the string. If not you need to do NSString *url = [[NSString alloc] initWithString:mad:"string"];
    then release the string [url release];
     

Share This Page