Memory warning & crash issue

140 views Asked by At

I have developed application using ARC. In one of my UIViewController there are number of sub controllers (Like Buttons, Labels, Textfields, Textview, Scrollview) which all are having its IBOutlet. Here issue is that,I am using iOS 6.0.

With iOS 6.0 viewDidUnload method is deprecated. So at the time of Pop, this method is not called. I have checked with "product--> profile--> allocation" here whenever this controller is pushed in the navigation stack it increases the live memory Bytes but on pop Memory bytes don't decrease. Because of this after using an application for some time I am getting Received Memory Warning & application is going to be crashed in random instances.

Is there any alternative way to handle this kind of backend memory management issue.

1

There are 1 answers

4
Paras Joshi On BEST ANSWER

First check in .h file that you property-sythesized with retain or not if with retain then set strong instead of retain like bellow..

@property ( nonatomic, strong) IBOutlet UITextField *yourTextField;;