Latest 0.1.1
Homepage https://github.com/piemonte/PBJHexagon
License MIT
Platforms ios 6.0, requires ARC
Frameworks QuartzCore, UIKit
Authors

PBJHexagon

Hexagon

PBJHexagon is a simple hexagon grid flow layout for UICollectionViews. It was originally created for the DIY app to display skill hexagons, a video can be found here.

Please review the release history for more information.

The github issues page is a great place to start a discussion but also allows others to benefit and chime in on the project too.

Installation

CocoaPods is the recommended method of installing, just add the following line to your Podfile:

pod 'PBJHexagon'

Usage

#import "PBJHexagonFlowLayout.h"
PBJHexagonFlowLayout *flowLayout = [[PBJHexagonFlowLayout alloc] init];
flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
flowLayout.sectionInset = UIEdgeInsetsZero;
flowLayout.headerReferenceSize = CGSizeZero;
flowLayout.footerReferenceSize = CGSizeZero;
flowLayout.itemSize = CGSizeMake(80.0f, 92.0f);
flowLayout.itemsPerRow = 4;

_hexagonGridViewController = [[UICollectionViewController alloc] initWithCollectionViewLayout:flowLayout];

Resources

License

PBJHexagon is available under the MIT license, see the see the LICENSE file for more information.

Latest podspec

{
    "name": "PBJHexagon",
    "version": "0.1.1",
    "summary": "iOS hexagon grid layout for UICollectionViews.",
    "homepage": "https://github.com/piemonte/PBJHexagon",
    "license": "MIT",
    "authors": {
        "Patrick Piemonte": "[email protected]"
    },
    "source": {
        "git": "https://github.com/piemonte/PBJHexagon.git",
        "tag": "v0.1.1"
    },
    "frameworks": [
        "QuartzCore",
        "UIKit"
    ],
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "Source",
    "requires_arc": true,
    "screenshots": "https://raw.github.com/piemonte/PBJHexagon/master/PBJHexagon.gif"
}

Pin It on Pinterest

Share This