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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -