Resizable image : lock height

Discussion in 'iOS Programming' started by Palad1, Oct 1, 2008.

  1. Palad1 macrumors 6502a

    Palad1

    Joined:
    Feb 24, 2004
    Location:
    London, UK
    #1
    Hello,

    I'd like to implement a scrollable, resizeable UIScrollView containing an UIImageView, but I would like the resize and pan operations to only work along the X axis.

    Should I override a specific delegate and return a new image with the old height and the new width (might be a tad too Cpu-intensive?), or is there some option in UIScrollView I'm not aware of.

    Cheers,
    Palad1
     
  2. Palad1 thread starter macrumors 6502a

    Palad1

    Joined:
    Feb 24, 2004
    Location:
    London, UK
    #2
    Solved:
    Code:
    UIScrollView *scrollView;
    scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    
    :D
     

Share This Page