ios - Scroll content size not working in viewDidLayoutSubviews -
am using xib design view using auto layout.run time want change content size of scrollview in viewdidlayoutsubviews method not working.on orientation change code written inside viewdidlayoutsubviews works on load not working.please advice issue?
- (void)viewdidlayoutsubviews { scroll.contentsize = cgsizemake(scroll.frame.size.width, attbtn.frame.origin.y+attbtn.frame.size.height+40);//atnbtn added programatically }
usually when want have view redraw should call:
[self setneedsdisplay: yes];
granted have never build on ios, on osx code works every time. also, example, if want delegate call redraw view named someview:
[someview setneedsdisplay: yes];
Comments
Post a Comment