I could not understand how the drawRect method was being called in the program.
In BNRAppDelegate.m, only the firstView object is initialised and added to the subView.
This is the code:
[code] CGRect firstFrame = self.window.bounds;
BNRHypnosisView *firstView = [[BNRHypnosisView alloc]initWithFrame:firstFrame];
Shouldn’t there be an explicit call to the drawRect method like this:
Since there is no such call, who is calling this method and how is the code getting executed ?