From: Panayotis K. <pan...@pa...> - 2009-10-28 16:38:49
|
I try to understand one thing - it doesn't really make sense to me. In UIView inheritance is used to call drawRect:(CGRect)rect because it doesn't work otherwise. I tried it too without inheritance and failed. But, in the similar issue with viewDidLoad from UIViewController, which I simply did something like: - (void) viewDidLoad { [self viewDidLoad__]; } - (void) viewDidLoad__ { } there wasn't a need to use inheritance. viewDidLoad__ was called in any case. Any ideas why in the first case, inheritance was required, but in the second it was not? |