swift - How to make UIScrollView scrolling all content inside it -


i have uitextview, uiimageview, uilabel inside uiscroll view. made uitextview height equals content , made scrollenabled = false. uiscrollview scrolling not content. want uiscrollview scrolling content inside it. want make detailviewcontroller in news applications. how make it?

i found solve, ctr-drag uitextview height constraint detailviewcontroller , made following

@iboutlet weak var textviewheight: nslayoutconstraint! {     didset {         self.textviewheight.constant = self.textview.sizethatfits(cgsizemake(self.textview.frame.size.width, cgfloat.max)).height     } } 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -