Hi all
I am trying to make a small alteration to some code and getting nowhere.
I have some code that when the button is clicked it took you to a web page and there was a "Back" button to return you to the app. All worked fine. Here is the code and I can see why it works the way it does:
-(IBAction)btnBlogPress
{
MyWebBrowser *_webBrowser = [[[MyWebBrowser alloc] initWithNibName:@"MyWebBrowser" bundle:[NSBundle mainBundle]]autorelease];
_webBrowser._link = BLOG;
_webBrowser.pdelegate = self;
[Common pushController:_webBrowser withTransition:UIViewAnimationTransitionFlipFromRi ght withNavigationController:self.navigationController];
}
The BLOG was a web page but I am trying to alter the code so that button now opens up the App Store so people can buy the full version (this code is in the Lite version).
BLOG therefore now translates to:
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=452677920&mt=8
This seems to correctly start the app store (on iPhone/iPad) and put you into it.
THE PROBLEM:
When you go back into the app there is a blank page, with a "Back" button at the top.
However, what I WANT IT TO DO is: You click on the button, opens App Store (as it does now) BUT within the App it just stays on the screen it was on (that had the button on that was clicked).
Can someone please have a look at the code snippet above and help me
Thanks in advance
Simon