ios - CYLTabBarController是怎么通过self.viewController访问该方法的?
本文介绍了ios - CYLTabBarController是怎么通过self.viewController访问该方法的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
下面的方法不是getter方法吧,因为没有看到声明的变量
解决方案
UITabBarController有一个属性为viewControllers 下面的方法相当于重写UITabBarController中viewControllers属性的getter方法,self.viewControllers就是调用了viewControllers的getter方法
这篇关于ios - CYLTabBarController是怎么通过self.viewController访问该方法的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文