How to make custom reusable UIView using XIB.
1 min readOct 3, 2020
Following example shows steps involved in initializing a view from XIB.
This is not a complex operation but exact steps need to be followed in order to do it right way first time, avoiding exceptions.
How does loadNibNamed Works
Main steps are:
1. Create XIB
2. Create class .h and .m
3. Define outlets in .h
4. Connect outlets between .h and XIB