This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Insert your preferred key mappings here. | |
unmapAll | |
# Basic movement | |
map d scrollLeft | |
map h scrollDown | |
map t scrollUp | |
map n scrollRight | |
map ii scrollToTop | |
map I scrollToBottom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
// | |
// Based shamelessly upon https://gist.github.com/Jaybles/1323251 | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { | |
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"productCell" forIndexPath:indexPath]; | |
CALayer* layer = cell.layer; | |
[layer setMasksToBounds:NO]; | |
[layer setShadowColor:[UIColor blackColor].CGColor]; | |
[layer setShadowOffset:CGSizeMake(0.0f, 5.0f)]; | |
[layer setShadowOpacity:0.3f]; | |
[layer setShadowRadius:4.0f]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { | |
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"productCell" forIndexPath:indexPath]; | |
CALayer* layer = cell.layer; | |
[layer setCornerRadius:4.0f]; | |
[layer setBorderColor:[UIColor colorWithWhite:0.8 alpha:1].CGColor]; | |
[layer setBorderWidth:1.0f]; | |
return cell; |