CustomVIew/View

  1. 6 years ago

    Joel_Eisenstat

    31 May 2017 User since 2016

    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

  2. Joel_Eisenstat

    31 May 2017 User since 2016

    Offset is 44 - top bar

  3. marco

    1 Jun 2017 Administrator User since 2016

    Have you setup constraints?
    Looks like you need to attach the header on top:

  4. Joel_Eisenstat

    2 Jun 2017 User since 2016

    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.

  5. marco

    2 Jun 2017 Administrator User since 2016

    A CustomView is always resized/moved according to the View that contains it, so you need to setup proper constraints.

or Sign Up to reply!