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

erritikamathur

macrumors newbie
Original poster
Sep 23, 2009
8
0
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
 
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];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.