I’m pretty experienced with the syntax of Objective-C, but am lacking in how the object parts of it work (yes I know, it’s not good). I would like to know a few things:
- How to create an object.
- How to make it inherit certain properties from other classes (i.e. UIView).
- How to make your own properties inside them (i.e. Health, Damage, Stamina).
If someone can please help me out, I would greatly appreciate it.
Some examples to look at before reading the documentation already posted:
To instantiate a class:
To inherit properties you would subclass it. To add custom properties, specify them in your subclass.