"IOS learning notes" type conversion failed (use of undeclared identifier)
Why is the following error: Use of undeclared identifier,
-(Void) Request {nsobject* Otherbizdata =[Iloginviewcontroller calladdbiz]; nsobject* Otherrequestdata =[Iloginviewcontroller calladd];If([Otherrequestdata iskindofclass: [nsarrayClass]& [Otherbizdata iskindofclass: [nsarrayClass]& [(Nsarray *) otherrequestdata count] = [(nsarray *) Otherbizdata count]) {nsarray* Otherrequestdataarray = (nsarray *) Otherrequestdata; nsarray* Otherbizdataarray = (nsarray *) Otherbizdata ;}}
The statement for analyzing the suspected problem with the naked eye is: [(nsarray *) otherrequestdata count] = [(nsarray *) otherbizdata count]
The test is as follows to solve the problem:
Suspected analysis: This sentence has already converted nsobject to nsarray. Therefore, the nsobject variable cannot be found during the second re-conversion. Therefore, an error is thrown: the object with a unique identifier is not defined.
Problem:After the conversion, the otherrequestdata is lost? Or are there two otherrequestdata records that cannot be identified?
Welcome experts to shoot bricks ~