正在逐漸內存泄漏以下code..pls幫我解決這個..內存泄漏問題
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
//iPad specific code.
universalApp=1;
NSLog(@"ipad started.......");
// Override point for customization after application launch
window.frame = CGRectMake(0, 0, 768, 1004);
//window.frame = CGRectMake(0, 0,320,460);
mainPageController = [[MainPageController alloc] initWithNibName:@"MainPageController" bundle:nil];
// [mainPageController.view setFrame:CGRectMake(0, 20, 320, 460)];
[window addSubview:mainPageController.view];//memory leak
[window makeKeyAndVisible];
是如何你測量內存泄漏?你有沒有嘗試過構建和分析?或者你在使用泄漏工具嗎? – 2011-02-09 13:11:21
我使用了泄漏工具。 – Madhumitha 2011-02-09 13:19:30