CocoaHeads Talk Materials
Code and links for the Philly CocoaHeads UICollectionView, IBDesignable, MVC Talk.
- constraintsForFlowing:
- Basic code to setup the auto layout constraints for an array of views. The views can be laid out vertically or horizontally.
- calcHConstraint:
- Calculates the horizontal and vertical constraints relative to the container edges for the passed view and collection index. When a new collection subview is created, it's constraints are saved in an NSMap collection container property and passed to the calcHConstraint method during the containers updateContraints.
-
FlowLayoutSample1.png
-
FlowLayoutSample1@2x.png
-
TableLayoutSample2.png
-
TableLayoutSample2@2.png
-
RulesViewWithLotsOfRows@2x.png
-
RulesViewWithLotsOfRows.png
-
CocoaHeads IB_Designable and MVC.pdf
- Slides for a talk given at Philadelphia chapter of CocoaHeads.