扫码关注官方订阅号
下面的方法不是getter方法吧,因为没有看到声明的变量
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
UITabBarController有一个属性为viewControllers 下面的方法相当于重写UITabBarController中viewControllers属性的getter方法,self.viewControllers就是调用了viewControllers的getter方法
这是 Objective-C 或者 Xcode 的一个特性,self.view 等价于 [self view]
self.view
[self view]
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
UITabBarController有一个属性为viewControllers 下面的方法相当于重写UITabBarController中viewControllers属性的getter方法,self.viewControllers就是调用了viewControllers的getter方法
这是 Objective-C 或者 Xcode 的一个特性,
self.view等价于[self view]