.H :iOS : 누수가 있습니까?
#import <UIKit/UIKit.h>
#import "Todo.h"
@interface TodoCostApplyViewController : UIViewController
{
NSThread* headViewThread;
NSThread* tableViewThread;
}
@property (nonatomic, retain) NSThread* headViewThread;
@property (nonatomic, retain) NSThread* tableViewThread;
@end
하는 .m :
@interface TodoCostApplyViewController()
@end
- (void)viewDidLoad
{
[super viewDidLoad];
headViewThread = [[NSThread alloc] initWithTarget:self
selector:@selector(drawHeadView)
object:nil];
[headViewThread start];
tableViewThread = [[NSThread alloc] initWithTarget:self
selector:@selector(drawTableView)
object:nil];
[tableViewThread start];
}
- (void)dealloc
{
[tableViewThread release];
[headViewThread release];
}
tableViewThread 및 headViewThread에 대한 메모리 누수가 있습니까? 누수가있는 경우이 문제를 어떻게 처리해야합니까? 미리 감사드립니다.
괜찮아 보이는데 synthezise 호출을 게시하지 않으 셨다고 생각합니다. – CarlJ
헤더에 속성을 선언했지만 '@ synthesize' 또는'@ dynamic'을 사용하지 않았습니다. – Jasarien