简体   繁体   中英

Embed UIViewController inside static UITableViewController cell

I have a static UITableViewController with 5 sections.

In first section I embed UIPageViewController into UITableViewCell. But my app become freeze and no error appear.

I try to remove UIPageViewController and it works.

Can I have UIPageViewController inside UITableViewCell?

Or did I miss something?

You can not add UIPageViewController into UITableViewCell. Try to add UIScrollview in UITableView cell content view. Decrease priority of width of Scrollview. Then add page control in Scrollview to check current page as per scrollview swipe. Hope Below link will help.

Page Control in Swift

I found the solution. The app become freeze caused by Realm.

We can embed UIViewControlle in UITableViewCell, but UITableViewController must be static Cells (Settings in your storyboard).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM