search

Home  >  Q&A  >  body text

ios - CYLTabBarController是怎么通过self.viewController访问该方法的?

下面的方法不是getter方法吧,因为没有看到声明的变量

高洛峰高洛峰2866 days ago540

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:45:48

    UITabBarController has an attribute called viewControllers. The following method is equivalent to overriding the getter method of the viewControllers attribute in UITabBarController. self.viewControllers calls the getter method of viewControllers

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:45:48

    This is a feature of Objective-C or Xcode, self.view 等价于 [self view]

    reply
    0
  • Cancelreply