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

UIView on top of a UITableView

How can I add a UIView on top of a UITableviewController. Been trying and looking for answers everywhere.

Are you trying to place a you view inside of a cell? I'm not sure I fully understand your dilemma

Sorry, Russell Warwick, in order to help, we'd need some more information on what you're trying to accomplish.

Okay so I have a UITableviewController than contains peoples names, but i want to place a custom UIView over the top of the table view to UIView will be fixed in place and not move with the tableview. It is basically a drop down menu that I have built. It has nothing to do with the cells of the tableview. Photo example <p> In that photo they have a camera button over the top of the table view, the camera button is probably in a UIView

1 Answer

Hi Russell.

This StackOverflow Question should help: http://stackoverflow.com/questions/4641879/how-to-add-a-uiview-above-the-current-uitableviewcontroller

If you don't get on with the above you could re-build your UITableViewController in a UIViewController to achieve the desired results in Interface Builder. (Add a UITableView, link DataSource / Delegate - copy & paste the delegate methods etc).

Hope this helps!