Posts

Showing posts from March, 2019

iOS Tutorial - Twitter profile view controller

Image
Storyboard configurations: First we add the header which will contains the background image ( we will insert UIImageView by code later) with trailing, leading, top to super view with a constant of its height we should also maintain a reference to the header view in the view controller Second step:  we add the scroll view which will contain the data for example you can embed an empty view in it OR a UITableView with a fixed height to it  with the shown constraints  You will notice a red flash booms to your face from the Xcode , its normal the scroll view is a special class that have a view to scroll , interface builder don't know the actual height or width for the scroll  we will fix this now  interface builder issues:  We will add a dummy container view with constraints to scrollview we will called "Spacer"  , Wow the red flash gone ! Optional : we can add another container view tha...