The Huaxia project encountered a very strange bug. The member variables defined in the base class hxviewcontroller cannot be directly referenced in the subclass hpcontainerviewcontroller. In addition, the simulator environment can be compiled and run, but an error is reported when compiling in the real environment, that is, the variables are not defined. I suspect this problem is a bug in xcode or compiler. If you change the compiler from the default GCC to llvm in xcode, then this partCodeCompilation is successful, but other errors are reported. It is unclear what caused this problem, because in other code of the same project, subclass can directly reference the variables of the parent class.
The method to bypass this problem is to reference the parent class variable in the subclass, instead of writing Ivar directly, but into self-> Ivar syntax. This is the syntax for C to access member variables in a struct object pointer. In objective-C, the class is converted to the struct of the C language during compilation. In objective-C, the short format can be used instead of "self-> ", the compiler will automatically complete the configuration. However, this bug does not cause the compiler to automatically complete the object pointer, so you need to manually complete it in the code.