Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Jonathan Fernandez
Jonathan Fernandez
8,325 Points

Adding a textfield and send button to the bottom of a tableview controller.

So I basically have no idea where to start or how to do this, but I technically want to place a Textfield with a send button on a tableview controller. Kinda like how it is in iMessage at the bottom of the view controller.

This is a tableview of friends for selection with check marking. Below will be the textfield where a user will place a string and then after selecting friends may tap the send button to send something.

Anyone have any idea how I can do this?

Side-note: I also found something like this but still have no idea how to use it to get the textfield to show up at the bottom of the screen.

https://github.com/songfrank/DAKeyboardControl

I was able to use the other methods though to provide keyboard dismissal which is very useful. ^^

Any feedback will be greatly appreciated! : )

1 Answer

Thomas Nilsen
Thomas Nilsen
14,957 Points

I'd have a look into scrollViews, content insets and offsets if I were you :)

Jonathan Fernandez
Jonathan Fernandez
8,325 Points

Ok thanks for the tip. Will have a look at some documents and materials I can find related to it. : )