This file contains hidden or 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
| def tick args | |
| args.labels << [640, 689, "Asset Presenter", 0, 1] | |
| args.sprites << tile(0, 0, 100, 100) | |
| args.sprites << tile(1, 0, 200, 200) | |
| args.sprites << tile(2, 0, 300, 300) | |
| 10.map_with_index do |x| | |
| 10.map_with_index do |y| | |
| args.sprites << tile(x, y, 30 + x * 64, 30 + y * 64) | |
| end |
This file contains hidden or 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
| // | |
| // Swift-KVO | |
| // | |
| // Created by Jim Correia on 6/5/14. | |
| // Copyright (c) 2014-2015 Jim Correia. All rights reserved. | |
| // | |
| // Update: 6/17/2014 | |
| // | |
| // KVOContext has gone away; use the same idiom you'd use from Objective-C for the context | |
| // |
This file contains hidden or 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
| @interface HorizontallyPagingCollectionViewFlowLayout : UICollectionViewFlowLayout | |
| @end | |
| @implementation HorizontallyPagingCollectionViewFlowLayout | |
| - (CGSize) collectionViewContentSize | |
| { | |
| CGSize superSize = [super collectionViewContentSize]; | |
| CGSize frameSize = self.collectionView.frame.size; |