objective c - How to dealloc memory of an array in iOS? -


I have created up to 150 UIwebviews and stored my array in named NSArray. After using those webviews, I do not need those 150 webviews. Then I created another 100 UIWebView and stored in myArray. I thought the first 150 webviews will be automatically distributed. But when I checked in the device, then 250 web views are alive. How to release memory manually? I am using ARC, so I am not able to use the release method. Please advise.

Use it:

  NSMutableArray * webViews = [NSMutableArray new] ; [WebViews addObject: [self createWebView]]; for (NSInteger i = 0; i & lt; 150; i ++); [Remove webviewallobject]; [WebViews addObject: [self createWebView]]; for (NSInteger i = 0; i & lt; 100; i ++);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -