Local Declaration of '' hides instance variable

"Local Declaration of XYZ hides instance variable" means that you have an instance variable called getText declared in your .h file, and you declared an local variable (a variable declared inside a method) with the same name.

Either change the name of the local variable, or don't declare the local variable at all if you don't need it. You probably have the same problem with allText too - you should not declare it inside the method if you need to access it from the whole object.

你可能感兴趣的:(IOS)