Good afternoon.
Error memory when the app is running.
[5133:307051] *** -[DeclarantController retain]: message sent to deallocated instance 0x7f9e53d22b50
The form open after you request data in 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];
});
Simplified the controller, but the error POPs up if put in the viewDidLoad method call getDeclarantKind. If you comment out, the error does not occur. Error occurs even with an empty method.
@implementation DeclarantController : BaseController
- (void)viewDidLoad
{
[super viewDidLoad];
[self tableColor];
[self getDeclarantKind];
}
-(NSMutableArray*)getDeclarantKind
{
}
@end
when the following algorithm:
- Opens a form And on it there is a button for transition to B
- Opens form B on it the API request in background process. If the response came form opens C
- Form C normally works
- Go back swipe on form B and then swipe to the form And
- Repeat items 1-3. The form opens
- Go back swipe on form B and then swipe to the form And
Repeat items 1-3. Form C opens but the buttons will slide. After clicking on any area of the screen there is a bug in main.m
int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }
Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
Most do not understand why the error is triggered only on the 3rd pass. The first 2 work. And if you want to remove [self getDeclarantKind]; the same form is rendered and works fine.

