I have two custom views in the dock of my view controller. (I linked them up to IBActions already) When button 1 is clicked this code gets triggered:
mainView.addSubview(view1)
So I add view1 as a subview of mainView. (Note: Mainview is a view i created that fills a portion of the screen. Mainview and view1 are the same height and width)
But when I run this view1 is partially off the screen and not where mainView is at all. (No autolayout setup yet)
Thanks for all help!