ios - UIIView Inside UITableView Change Frame height to 0 or 60 -


I have a UIView on top of UITableView (Drag the storyboard and drop.) I hide and show the scene tried. See standing in place. How can I change the frame of uivew so when this invisible tableview goes all the way up?

PS I will provide more information for those who are ready to help.

! [View with hamburger button and Tekstfild]

Autolayout with

: < / p>

  • button and add barrier between your UIView with textField
  • Create reference outlet to the barrier height (it will be "searchViewHeightConstraint" count)
  • UIView and add vertical spacing barrier between UITableView
  • code - when you need to hide UIView - set just 0 its height barrier

    Self.searchViewHeightConstraint. Constant = 0.f;

In addition to letting you need to Story E initial height of the UIView somewhere (as it appears) and when you show UIView If required, set its height limit to this value.

without autolayout:

  • UIView frame Save Money height
  • Height 0 set UIView
  • Reduce the y-coordinate of the UITableView frame with the saved height of the UIView

      CGRTP tableviewfreck = TableView.fr; TableViewFrame.origin.y - = viewInitialHeight; TableView.frame = tableViewFrame;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -