ios - ScrollView with Tab bar -
i have implement similar chat.
so thought add scrollview table view view textfield , send button on top of tableview.
i have tabbar on bottom
is right approach. wanted bring keyboard , move text box upwards
the images not containing scroll view because when ever put scroll view screws me up
additionally want know how increase size of rows depending on chat message. crude drawing
this have achieved far
i not able increase size of label according data, nor able bring textfield when keyboard showing. :(
uitableview inherits from, , contains uiscrollview don't need add scroll view yourself, , cause problems, assume case have described.
to have cells adjust automatically, check out tutorial https://www.captechconsulting.com/blogs/ios-8-tutorial-series-auto-sizing-table-cells. provides lots of details on how , why works.
for message bar on bottom, way i've done in past, add view text field , send button view (i'll call message view) main view stuck bottom, set message view input accessory on text field, when text field starts editing, view snapped top of keyboard automatically. can't quite tell how have constrained message view in picture, make sure bottom of table view not constrained top of message view. want message view floating on top, table view can either constrained height of message view bottom, or can set content inset push content above message view.
Comments
Post a Comment