Здесь я сомневаюсь, что у меня есть MasterViewController, у которого нет Superview, и у меня есть метки, которые были объявлены глобально и также используются в различных функциях.
Мой вопрос заключается в том, как я могу освободить те метки, которые выделены. Если я использую autorelease, то он генерирует исключения.
- (id)init {
if(self = [super init]) {
mview = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
//mview.backgroundColor=[UIColor clearColor];
mview.autoresizesSubviews=YES;
tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,220,320,440) style:UITableViewStyleGrouped];
tableView.delegate = self;
tableView.dataSource = self;
tableView.rowHeight = 45;
tableView.backgroundColor = [UIColor clearColor];;
tableView.separatorColor = [UIColor blackColor];
[tableView setSectionHeaderHeight:15];
[tableView setSectionFooterHeight:10];
[mview addSubview:tableView];
}
for example here I declared table view as global how can i release it?Is it possible to release in dealloc.I place a printf statement in dealloc but it was not displaying.
Anyone's help will be appreciated.
Thank you,
Monish Kumar.