Open iTunes from iPhone app -
i need open itunes app store application. used following link. error is:
your request not completed
my code below:
nsstring *referrallink = @"http://itunes.apple.com/us/album/esperanza/id321585893"; nsurl *itunesurl = [nsurl urlwithstring:referrallink]; nsurlrequest *referralrequest = [nsurlrequest requestwithurl:itunesurl]; nsurlconnection *referralconnection = [[nsurlconnection alloc] initwithrequest:referralrequest delegate:self startimmediately:yes]; [referralconnection release]; [[uiapplication sharedapplication] openurl:itunesurl];
nsurl *url = [nsurl urlwithstring:@"itms-apps://itunes.apple.com/us/album/esperanza/id321585893"]; [[uiapplication sharedapplication] openurl:url];
not http://
Comments
Post a Comment