What is the difference between addSubview and insertSubView methods when a view is added programmatically?
addSubview
insertSubView
Using insertSubView: you can specify the index, which determines z-order of views. A view with a higher index lies above those with lower indices.
insertSubView: