如何从字符串文件 xlpagertabstrip 子标题中设置 itemInfo 文本
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
**let path = Bundle.main.path(forResource: "String" , ofType: "plist")
let dict = NSDictionary(contentsOfFile: path!)
let Data = dict?.object(forKey: "Main_Menu_Title") as! [String]
let child_1 = HomeViewController(itemInfo: Data[0] )**
let child_2 = SectraitViewController(itemInfo: "Home")
let child_3 = InfrastructureViewController(itemInfo: "Home")
let child_4 = TourismViewController(itemInfo: "Home")
let child_5 = HomeViewController(itemInfo: "Home")
guard isReload else {
return [child_1, child_2, child_3, child_4, child_5]
}