I need help.
In any good editors i have simple mechanism to work with UI. But XCode it`s not good editor. My question is in the following:
I created UIView and set any constraints like here http://take.ms/g27uy
But if i run this to iphone6s simulator, then all children's shift right like here http://take.ms/JH2er
WHY???? All controls(button + text) lie on this view. Why is this happing?
Hope below solution will help you
Create view like TabBar and give it proper Constraints. as image describe below with L,T,B & H Constraints.
Add One subview to that view and give it all Constraints to superview with equal width and height. Now suppose you are having 3 tabs then the added subview height should be 1/3. so you just need to give height Constraints's multiplier to 1/3 as below image
and your Main view (Custom Tabbar view) should look like this
Add Second view for second tab item with same width and height Constraints as first tab item. image for it as below
Make sure the first and second tab items no need of trailing Constraints the last item contains it.