ios - Add button on top of UITableViewController (Swift) -
i trying add button ontop of uitableview controller table view. view controller has navigation controller , static cells, why uitableviewcontroller , not uiviewcontroller. trying add button @ bottom of screen attached navigation controller doesn't scroll table view.
i trying make similar below. has navigation controller top bar, table view static cells , button, how did button?
image: http://postimg.org/image/ilsmqqrip/
thanks!
update: how can use uiviewcontroller tableview static cells using swift?
i find container views useful in scenario! clean solution , easy implement.
just create normal uiviewcontroller, add button , containerview subviews of uiviewcontroller (the middle 1 in image below). create embed segue containerview uitableviewcontroller (the 1 on right).
this way can use static cell prototypes, not being limited uitableview @ same time.
result:
Comments
Post a Comment