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
// | |
// Code based on http://markuzweb.blogspot.com.au/2014/02/uicollectionview-paging-for-smaller-width-cells.html | |
// | |
// Note, need to create property called "previousXoffset" in class and doesn't need to be | |
// initialized by default | |
// | |
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView | |
withVelocity:(CGPoint)velocity | |
targetContentOffset:(inout CGPoint *)targetContentOffset { | |