Skip to content

Commit

Permalink
init HostManagementView after observing notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
joethefox committed May 6, 2013
1 parent 484a2da commit a03f2ce
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions XBMC Remote/ViewControllerIPad.m
Expand Up @@ -370,13 +370,6 @@ - (void)viewDidLoad{
[self.view addSubview:virtualKeyboard];
firstRun=YES;
[AppDelegate instance].obj=[GlobalData getInstance];

self.hostPickerViewController = [[HostManagementViewController alloc] initWithNibName:@"HostManagementViewController" bundle:nil];
[AppDelegate instance].navigationController = [[UINavigationController alloc] initWithRootViewController:_hostPickerViewController];
self.serverPickerPopover = [[UIPopoverController alloc]
initWithContentViewController:[AppDelegate instance].navigationController];
self.serverPickerPopover.delegate = self;
[self.serverPickerPopover setPopoverContentSize:CGSizeMake(320, 436)];

int cellHeight = 56;
int infoHeight = 22;
Expand Down Expand Up @@ -540,6 +533,14 @@ - (void)viewDidLoad{
selector: @selector(handleTcpJSONRPCChangeServerStatus:)
name: @"TcpJSONRPCChangeServerStatus"
object: nil];

self.hostPickerViewController = [[HostManagementViewController alloc] initWithNibName:@"HostManagementViewController" bundle:nil];
[AppDelegate instance].navigationController = [[UINavigationController alloc] initWithRootViewController:_hostPickerViewController];
self.serverPickerPopover = [[UIPopoverController alloc]
initWithContentViewController:[AppDelegate instance].navigationController];
self.serverPickerPopover.delegate = self;
[self.serverPickerPopover setPopoverContentSize:CGSizeMake(320, 436)];

}

-(void)handleTcpJSONRPCShowSetup:(NSNotification *)sender{
Expand Down

0 comments on commit a03f2ce

Please sign in to comment.