Nested functions not allowed in drawrect problem
- by Martin
I have a custom view onto which I draw some graphics from the drawrect function, which works fine.
However I like to draw based on the contens of an array I pass on the the view just before I do a setNeedsDisplay. In the drawRect function I try to access the array but then I get a nested functions error which I do not understand.
Here's my code:
…