objective c - tvOS: Creating parallax effect on UICollectionViewCell -


i'm using ios 9 storyboards create tvos app.

the app has uicollectionview. i've defined apple tv image stack contains front, middle , asset in assets.xcassets collection.

when user highlights uicollectionviewcell, i'd have have 'highlight' effect similar app icon has, user can 'circle' finger on siri remote expose parallax effect , shine.

does have experience this?

just found answer. hope helps else:

- (uicollectionviewcell *)collectionview:(uicollectionview *)cv cellforitematindexpath:(nsindexpath *)indexpath {     uicollectionviewcell *cell = [cv dequeuereusablecellwithreuseidentifier:@"cameracell" forindexpath:indexpath];      uiimage *image = [_cameras objectatindex:indexpath.row];     uiimageview *imageview = [[uiimageview alloc] initwithimage:image];     imageview.userinteractionenabled = yes;     imageview.adjustsimagewhenancestorfocused = yes;     imageview.frame = cgrectmake(0, 0, 853, 560);     [cell addsubview:imageview];      return cell; } 

Comments