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
func scrollToSection(_ section: Int) { | |
if let collectionView = collectionView { | |
let indexPath = IndexPath(item: 0, section: section) | |
if | |
let attributes = collectionView.layoutAttributesForItem(at: indexPath), | |
let flowLayout = collectionView.collectionViewLayout as? FlowLayout | |
{ | |
let headerHeight = flowLayout.headerReferenceSize | |
let topSectionInset = flowLayout.sectionInset.top |
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
// PMMainViewController.h | |
// SampleProject | |
// | |
// Created by Paola Mata on 12/6/13. | |
// | |
// | |
#import <UIKit/UIKit.h> | |
@interface PMMainViewController : UIViewController |