Summary of common errors and warnings in development (26)
Error hints
One: # error
[__nsarraym Superview]: Unrecognized selector sent to instance 0X7FF953507B10
- I forgot to load the firstobject inside the xib.
Two: note:
If the Uialertcontroller style is Actionsheet, you cannot add an input box
- Reason: ' Text fields can-only is added to analert controller of Style Uialertcontrollerstylealert'
Three: summary
If you want to use KVC for dictionary-to-model, the key in the dictionary must be identical to the attribute in the model (number + name)
- This class was not a key value coding-compliant for the key score. '
Four: note:
If you use KVO to listen for an object's properties, be sure to remove the listener before the object is released
Reason: ' An instance 0x7f9483516610 of class person is deallocated while key value observers were still registered WI Th it.
- Methods: [P removeobserver:self forkeypath:@ "age"];
iOS Development--Error summary & common errors and warnings in development summary (26)