English 中文(简体)
在IPad处理IPad一案中[超级交易]
原标题:The [super dealloc] in dealloc of UIViewController giving problem in iPad

我正在处理一项申请,当时我正在把一名观点控制员推向航空情报管制局,并在导航控制员保留时立即将其释放。 当观看控制器戴上<代码>dealloc方法时,被称作是预期的,但问题正被 app。 如果在亚洲开发银行观察到,允许<代码>NSZombie,其中表示:-[MyViewController isKindOfClass:]:发送到地址: 0x6847a00。 如果删除<代码>[超载],则从我的观察控制器<代码>dealloc上删除其仅限打的工作。 除[超级交易]外,我别无其他交易方法。 在这里,谁可以提供帮助。 法典如下:

MyViewController *myViewController = [[MyViewController alloc] initWithNibName:nil bundle:nil];
myViewController.path = selectedPath; //very important to set path here
myViewController.parentViewController = self;
[self cleanBookshelf];
[self.navigationController pushViewController:myViewController animated:NO];
[myViewController release];
[indicatorView removeFromSuperview];
[loadingindicator stopAnimating];

一)采用我作为主计长的一位行动方法

-(IBAction)goBack:(UIButton*)sender{
[self.navigationController popViewControllerAnimated:YES];

}
问题回答

仅作解释,但我怀疑问题与这一行:

myViewController.parentViewController = self;

UIViewController s parentViewController property is marked readonly, and I d take that as a strong message that you shouldn t mess with it.





相关问题
Making super() work in Python s urllib2.Request

This afternoon I spent several hours trying to find a bug in my custom extension to urllib2.Request. The problem was, as I found out, the usage of super(ExtendedRequest, self), since urllib2.Request ...

calling super() from an actionscript constructor with varargs

If a constructor takes its parameters as a vararg (...) it seems to be impossible to create a subclass that will just pass on that vararg to the superclass. There is a related question with fix for ...

super() weirdness in Python 3

I know this has been discussed a number of times before, but there was never an explanation of what s going on "under the hood". Can anyone provide a detailed explanation as to why commenting-in the ...

Calling super on a method defined by define_method

I have created a Model class where I define methods based on a method (attribute) called in User (which inherits from Model). The problem is that I cannot override the method defined by define_method, ...

Using super() in nested classes

Imagine this: class A(object): class B(object): def __init__(self): super(B, self).__init__() This creates an error: NameError: global name B is not defined. I ve tried A.B,...

Using super with a class method

I m trying to learn the super() function in Python. I thought I had a grasp of it until I came over this example (2.6) and found myself stuck. http://www.cafepy.com/article/...

热门标签