Answer the question
In order to leave comments, you need to log in
Objective-c deallocated when opening a new form?
Good afternoon.
A memory error occurs while the application is running.
[5133:307051] *** -[DeclarantController retain]: message sent to deallocated instance 0x7f9e53d22b50 I
open the form after requesting data on a background thread.
dispatch_async(dispatch_get_main_queue(), ^{
DeclarantController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"DeclarantController"];
viewController.consultData = self.consultData;
viewController.parentView = self;
[self.navigationController pushViewController:viewController animated:YES];
});
@implementation DeclarantController : BaseController
- (void)viewDidLoad
{
[super viewDidLoad];
[self tableColor];
[self getDeclarantKind];
}
-(NSMutableArray*)getDeclarantKind
{
}
@end
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question