From 92e2c0d7cc76033d5fefde381d52f1317637264b Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Sun, 26 Aug 2018 11:14:15 -0700 Subject: [PATCH] app cells are now clickable in tvOS --- Moonlight TV/ViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Moonlight TV/ViewController.m b/Moonlight TV/ViewController.m index c3c85bb..f18eebb 100644 --- a/Moonlight TV/ViewController.m +++ b/Moonlight TV/ViewController.m @@ -697,6 +697,10 @@ static NSMutableSet* hostList; }); } +- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { + [self appClicked:_sortedAppList[indexPath.row]]; +} + - (nonnull __kindof UICollectionViewCell *)collectionView:(nonnull UICollectionView *)collectionView cellForItemAtIndexPath:(nonnull NSIndexPath *)indexPath { UICollectionViewCell* cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"AppCell" forIndexPath:indexPath];