English 中文(简体)
如何调用交易方式
原标题:how to call dealloc method
  • 时间:2012-05-24 06:47:09
  •  标签:
  • iphone

I am new to iPhone development. I am calling one viewController on my button click event. But when I come back, my -dealloc method is not called. Here is my code of button click event:

-(IBAction)btnAddPressed:(id)sender
{
    FriendsTableListViewController *viewController = [[FriendsTableListViewController alloc] initWithNibName:@"FriendsTableListViewController" bundle:nil];
    [self.navigationController pushViewController:viewController animated:YES];
    [viewController release];
}

以下是我对主控器的观景方法,

-(void)dealloc{
    [super dealloc];
}

我不知道为什么交易方法不起作用 请帮帮我,谢谢...

问题回答

导航控制器正在控制您的控制器( 当您按下查看控制器时, 它将拥有该控制器), 因此它不会被交易 。

如果您想要删除视图控制器,请将其从导航控制器中弹出。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签