From 84c037f2353e8490240420f3b031ef5d62d2c0a5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 24 Sep 2016 20:39:43 -0700 Subject: [PATCH] Move the pull arrow up to the top of the left side and make it clickable on the PC view page --- Limelight/ViewControllers/MainFrameViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 2414959f..8fedad61 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -539,14 +539,13 @@ static NSMutableSet* hostList; hostScrollView.delaysContentTouches = NO; UIButton* pullArrow = [[UIButton alloc] init]; + [pullArrow addTarget:self.revealViewController action:@selector(revealToggle:) forControlEvents:UIControlEventTouchDown]; [pullArrow setImage:[UIImage imageNamed:@"PullArrow"] forState:UIControlStateNormal]; [pullArrow sizeToFit]; pullArrow.frame = CGRectMake(0, - self.collectionView.frame.size.height / 2 - pullArrow.frame.size.height / 2 - self.navigationController.navigationBar.frame.size.height, + self.collectionView.frame.size.height / 6 - pullArrow.frame.size.height / 2 - self.navigationController.navigationBar.frame.size.height, pullArrow.frame.size.width, pullArrow.frame.size.height); - [self.view addSubview:pullArrow]; - self.collectionView.delaysContentTouches = NO; self.collectionView.allowsMultipleSelection = NO; @@ -562,6 +561,7 @@ static NSMutableSet* hostList; [self updateHosts]; [self.view addSubview:hostScrollView]; + [self.view addSubview:pullArrow]; } -(void)dealloc