Good afternoon,
In trying to use a common header with a Custom view there seems to an offset when it is placed in the View
The CustomView is width 1024 height 300 but when placed in the View Control with same WH it is offset by ~ 100
Joel
Good afternoon,
In trying to use a common header with a Custom view there seems to an offset when it is placed in the View
The CustomView is width 1024 height 300 but when placed in the View Control with same WH it is offset by ~ 100
Joel
Offset is 44 - top bar
Have you setup constraints?
Looks like you need to attach the header on top:
Good morning,
I haven't used constraints yet but will take a look now. Assumed the custom view 0,0 would align with the
0,0 edge of the View control.
A CustomView is always resized/moved according to the View that contains it, so you need to setup proper constraints.