Move the pull arrow up to the top of the left side and make it clickable on the PC view page

This commit is contained in:
Cameron Gutman
2016-09-24 20:39:43 -07:00
parent c13df82f5b
commit 84c037f235

View File

@@ -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