I used a UIPageViewController
to present some pages. On every swipe, I feed a UITableviewController
to UIPageViewController
, using tableview
to present a page. Now I want to add a button at bottom of every page. I have tried in two ways: first: adding button to tableview's superview and bring it to front
[self.tableView.superview addSubview:submitButton];
//[self.tableView.superview bringSubviewToFront:submitButton];
second: adding button to pageviewcontroller's view and bring it to front
[strongSelf.pageViewController.view addSubview:submitButton];
[strongSelf.pageViewController.view bringSubviewToFront:submitButton];
But neither is OK, nothing appeared! Thanks in advance!