Releasing dynamically added UILabel.

Posted by coure06 on Stack Overflow See other posts from Stack Overflow or by coure06
Published on 2010-06-05T06:19:21Z Indexed on 2010/06/05 6:22 UTC
Read the original article Hit count: 226

Filed under:
|

I am adding a no. of UILable dynamically to my view like this

UILabel *test = [[UILabel alloc] initWithFrame:CGRectMake(x, y, 50, 50)];  
[self.view addSubview:tick];

Is it necessary to release these UILabel from memory in viewDidUnLoad and dealloc, if yes how i will release them? how i will get their reference?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk