I know that this is rarely required to override the alloc
or dealloc
methods,but if required is it possible in iPhone programming?
You can and indeed, you should (if using manual memory management) override dealloc
to release any resources you hold (not forgetting to call [super dealloc]
when finished). Overriding alloc
is possible but, as you say, rarely needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With