Alternative CollectionViews in iOS

Dheeraj Kumar Gunti

Reading Time : ( words)


CollectionViews are finest representation of items in rows and columns format. Here is a small sample which can be used as alternative for CollectionView.

Note: This example is best suited for loading minimal number of items.

Following is the sample for achieving that...

As in a normal flow, create a Empty Solution and Add a new view controller.

In the ViewDidLoad method have the below code pasted.

For Differentiating the cells we are specifying background color for the child views.

In this example we are displaying image which loads asynchronously.

Run the application...

Output:





Enjoy Coding..... :)