centering a view in a scrollview

Discussion in 'Mac Programming' started by Chirone, Nov 21, 2010.

  1. Chirone
    Expand Collapse
    macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #1
    Does anyone know if it's possible to change where the content view of a scroll view is drawn?

    i have a scroll view and when the content view is not as big as the scroll view i want it to be in the center.

    i've tried modifying the origin of the content view with no luck. it remains in the corner.
     
  2. Sydde
    Expand Collapse
    macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
  3. Chirone
    Expand Collapse
    thread starter macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #3
    yeah i tried changing the origin of the clip view with no luck...
     

Share This Page