objective c - UIScrollView and UITableView do not work -


i have uitableview uiscrollview , need table not have scroll, because of view going scrolling, using method -reset_sizes this, not work, scroll content_view frame of table not change, trying change height of table not work.

somebody knows can problem?

-(void) reset_sizes {         [_scroll_view layoutifneeded];           _table_view.frame = cgrectmake(_table_view.frame.origin.x, _table_view.frame.origin.y, _table_view.frame.size.width, [list_elements_to_table count]*44);          nsinteger height = _table_view.frame.size.height +_content_summary.frame.size.height+_content_apis.frame.size.height+_content_tag.frame.size.height;          _content_view.frame = cgrectmake(_content_view.frame.origin.x, _content_view.frame.origin.y, _content_view.frame.size.width, _content_view.frame.origin.y+height);          _scroll_view.contentsize = _content_view.bounds.size; } 

you can disable scrolling on uitableview _table_view.scrollenabled = no
far why code not changing height of tableview? try calling -layoutifneeded after adjusting frames/sizes.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -