我无法理解何时以及为何需要使用$ this-> $属性。因此,将$
添加到this
关键字和property
。我只在魔术方法__get()
和__set()
中使用了这个。任何人都可以详细说明吗?
答案 0 :(得分:4)
当 self.view.addSubview(self.pageViewController!.view) // !! -- viewDidAppear for CameraViewController called here
包含属性名称时可以使用UIImagePickerController
; CameraViewController
包含函数名称时$this->$property
可以使用$property
。
示例:
$this->$function()