iphone - UITableView with dynamic height inside UIScrollView: -


i have screen uinavigationcontroller , uitabbar. uinavigationcontroller screen uiview (in figure below, in red), haves image in top , uiscrollview (in figure below, in green). uiscrollview have 2 uilabel ("some text") , uitableview not enable scrolling.

enter image description here

every time list become bigger, need enlarge tableview height, dynamically. @ same time, think need enlarge uiscrollview. see image below:

enter image description here

how can define dynamical height uitableview , uiscrollview?

my goal is: every time list become bigger, uiscrollview become bigger too.

my environment:

  • my uitableview not enable scrolling
  • i using xcode 4.6 , view freeform
  • my view using autolayout

i tried setting uitableview height, without success.

how can this?

you can calculate height of table view bin method

heightforcellatindexpath:  

in method pass height of each row in can calculate height creating globale variable , in variable add row height each time.

or can find having no of rows * height of row in height of row constant.

may you.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -