iOS Can't get NSURL corresponding to some NSString

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
 

KoolStar

macrumors demi-god
Oct 16, 2006
825
9
Kentucky
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];
 

Similar threads

Register on MacRumors! This sidebar will go away, and you'll see fewer ads.