UIScrollView with sticky footer UIView and dynamic height content

前端 未结 3 509
[愿得一人]
[愿得一人] 2020-12-24 03:46

Challenge time!

Imagine we have 2 content views:

  1. UIView with dynamically height content (expandable UITextView) = RED
  2. UIView as a footer = BLU
3条回答
  •  难免孤独
    2020-12-24 04:20

    If I understand whole task, my solution is put "red" and "blue" views to one container view, and in the moment when you know size of dynamic content (red) you can calculate size of container and set scrollView content size. Later, on keyboard events you can adjust white space between content and footer views

提交回复
热议问题