mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user