I'm having some problems with assignment three.
I have three custom classes: Controller, PolygonShape, and UIPolygonView
In the assignment handouts, Evan says that you need to give your custom UIView class access to your PolygonShape. Does anyone know how to do that?
In the UIPolygonView class I am trying to set up some draw code, but when I try something like
Code:int sideToDraw = [aPolygonShape numberOfSides]
...I get the familiar 'error: aPolygonShape undeclared (first use in this function).' error message.
I realise it's probably some very basic class knowledge I am lacking here, but how do I let my UIPolyView see the instance of a PolygonShape that I created in my Controller class?
Many thanks for any help.
Where do you allocate and initialize aPolygonShape? Did you #import?