# Fixed LeaWebViewController

This commit is contained in:
Wongzigii
2015-08-30 15:02:23 +08:00
parent 7bb04ea804
commit 7c31a8aa24
6 changed files with 95 additions and 105 deletions

View File

@@ -183,13 +183,13 @@
}
-(void) visitUrl:(Note *)note
{
LeaWebViewController *webViewController = [[LeaWebViewController alloc] init];
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
LeaWebViewController *webViewController = [sb instantiateViewControllerWithIdentifier:@"LeaWebViewController"];
webViewController.needsLogin = YES;
User *user = [UserService getCurUser];
webViewController.host = user.host;
webViewController.email = user.email;
webViewController.pwd = user.pwd;
webViewController.url = note ? [NSURL URLWithString:[UserService getPostUrl:note.serverNoteId]]: [NSURL URLWithString:[UserService getMyBlogUrl]];
UIBarButtonItem *newBackButton =