【发布时间】:2018-07-24 09:26:38
【问题描述】:
我在我的应用程序中使用https://github.com/xmartlabs/XLPagerTabStrip#how-to-change-the-visible-child-view-controller-programmatically ...
点击一个孩子的按钮我想转移到另一个孩子..我试过了:
@IBAction func morenewsbtn(_ sender: Any) {
print("clicked")
let mainpage = HomeViewController()
mainpage.moveToViewController(at: 1, animated: true)
}
但这不会移动到另一个孩子..在 viewdidappear 中尝试了这个并且它工作正常..但是如何在按钮点击中使用它?
【问题讨论】:
标签: ios swift xcode xlpagertabstrip