ios - Scroll content size not getting set.Horizontal scroll not needed -
i have designed view in xib using auto layout , programmatically trying set content size of scrollview.horizontal scroll happening on load not expecting.on orientation of device scroll size set on load not working , able scroll horizontally .how avoid this?
- (void)viewdidlayoutsubviews { scroll.contentsize = cgsizemake(scroll.frame.size.width, attbtn.frame.origin.y+attbtn.frame.size.height+40);//attbtn added programmatically }
Comments
Post a Comment