diff --git a/Limelight/Images.xcassets/Contents.json b/Limelight/Images.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Limelight/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Limelight/Images.xcassets/PullArrow.imageset/Contents.json b/Limelight/Images.xcassets/PullArrow.imageset/Contents.json new file mode 100644 index 0000000..3e235a1 --- /dev/null +++ b/Limelight/Images.xcassets/PullArrow.imageset/Contents.json @@ -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" + } +} \ No newline at end of file diff --git a/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-14x31@1x.png b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-14x31@1x.png new file mode 100644 index 0000000..6a3a11b Binary files /dev/null and b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-14x31@1x.png differ diff --git a/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-28x61@2x.png b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-28x61@2x.png new file mode 100644 index 0000000..383b416 Binary files /dev/null and b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-28x61@2x.png differ diff --git a/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-42x92@3x.png b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-42x92@3x.png new file mode 100644 index 0000000..e701942 Binary files /dev/null and b/Limelight/Images.xcassets/PullArrow.imageset/pull-arrow-light-42x92@3x.png differ diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 0a7f978..a42640c 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -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];