下面的方法不是getter方法吧,因为没有看到声明的变量
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
UITabBarController有一個屬性為viewControllers 下面的方法相當於重寫UITabBarController中viewControllers屬性的getter方法,self.viewControllers就是呼叫了viewControllers的getter方法
這是 Objective-C 或 Xcode 的特性,self.view 等价于 [self view]
self.view
[self view]
UITabBarController有一個屬性為viewControllers 下面的方法相當於重寫UITabBarController中viewControllers屬性的getter方法,self.viewControllers就是呼叫了viewControllers的getter方法
這是 Objective-C 或 Xcode 的特性,
self.view
等价于[self view]