Dynamic height of cell based on user typing the text iOS swift || textview dynamic height iOS
Solution:
If you wants to adjust the height based on your textview text then below the steps will be easy to achieve that,
Also if you are using tableview also easy to do that.Using autolayout for wrap content like in android.
first you have to set the constraints to the textview without height because height will be adjustable.Except height you can give all the constraints
then in tableview delegate methods must implement that row height will be autodimention.
after that you can enjoy with the dynamic height tableview
If you wants to adjust the height based on your textview text then below the steps will be easy to achieve that,
Also if you are using tableview also easy to do that.Using autolayout for wrap content like in android.
first you have to set the constraints to the textview without height because height will be adjustable.Except height you can give all the constraints
then in tableview delegate methods must implement that row height will be autodimention.
after that you can enjoy with the dynamic height tableview
Comments
Post a Comment