Hi
I'm new to iOS programming and I'm using a snipped code to Open into Safari an Share link of a WordPress post showed into my app by JSON API plugin.
The app is connected to a WordPress installation into a subdomain, like app.mysite.com, the normal site is instead www.mysite.com.
How to change the URL of "Open" and "Share" replacing "app." with "www." so clicking user can see the normal site and not the dedicated app site?
I think that the code to modify is this:
You can help me?
I'm new to iOS programming and I'm using a snipped code to Open into Safari an Share link of a WordPress post showed into my app by JSON API plugin.
The app is connected to a WordPress installation into a subdomain, like app.mysite.com, the normal site is instead www.mysite.com.
How to change the URL of "Open" and "Share" replacing "app." with "www." so clicking user can see the normal site and not the dedicated app site?
I think that the code to modify is this:
Code:
- (void)open
{
[AppDelegate openUrl:_articleUrl withNavigationController:self.navigationController];
}
- (IBAction)share:(id)sender
{
NSArray *activityItems = [NSArray arrayWithObjects:_articleUrl, nil];
[self presentActions:activityItems sender:(id)sender];
//[self showDisqusComments];
}
You can help me?
Last edited: