mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
added pull arrow to side of screen
This commit is contained in:
6
Limelight/Images.xcassets/Contents.json
Normal file
6
Limelight/Images.xcassets/Contents.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
23
Limelight/Images.xcassets/PullArrow.imageset/Contents.json
vendored
Normal file
23
Limelight/Images.xcassets/PullArrow.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "pull-arrow-light-14x31@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "pull-arrow-light-28x61@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "pull-arrow-light-42x92@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-14x31@1x.png
vendored
Normal file
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-14x31@1x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 901 B |
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-28x61@2x.png
vendored
Normal file
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-28x61@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 812 B |
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-42x92@3x.png
vendored
Normal file
BIN
Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-42x92@3x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -506,6 +506,16 @@ static NSMutableSet* hostList;
|
||||
[hostScrollView setShowsHorizontalScrollIndicator:NO];
|
||||
hostScrollView.delaysContentTouches = NO;
|
||||
|
||||
UIButton* pullArrow = [[UIButton alloc] init];
|
||||
[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,
|
||||
pullArrow.frame.size.width,
|
||||
pullArrow.frame.size.height);
|
||||
[self.view addSubview:pullArrow];
|
||||
|
||||
|
||||
self.collectionView.delaysContentTouches = NO;
|
||||
|
||||
[self retrieveSavedHosts];
|
||||
|
||||
Reference in New Issue
Block a user