Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. You should be able to solve this with getting the height of the bottomBar and using scrollview contentInsets and scrollIndicatorInsets.
  2.  
  3. bottomBarHeight should be the value of the bar height.
  4.  
  5. Example:
  6.  
  7. let contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: bottomBarHeight, right: 0.0)
  8.  
  9. scrollView.contentInset = contentInset
  10. scrollView.scrollIndicatorInsets = contentInset
  11.  
  12. This is something that I use when I have scrollview and keyboard popup where i fille up the forms. Usually I make two @obj func where I will get notification with keyboard popup and keyboard hide where I reset contentInset to 0 values.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement