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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -