Skip to the content.

Build a scrolling photo gallery with UICollectionViewFlowLayout

UICollectionView was introduced in iOS 6 to display the content in a much more flexible way. Compared to UITableView, not only does UICollectionView provide simliar interfaces of dataSource and delegate to configure its layout, but there are much more customization options to go beyond the list or grid view thanks to UICollectionViewFlowLayout. The possible visual effect is only limited by a developer’s artistic imagination and quantitative reasoning.

Read More

Build autosizing UITableViewCell with UIStackView

UIStackView hides the tediousness and complexity of the Auto Layout. It cuts the number of constraints needed for Auto Layout, and thus makes it effortlesss to hide some of its arragedSubviews or alter their sizes at runtime. This lab unveils UIStackView’s flexibility by building an autosizing UITableViewCell.

Read More