Hi, here is the situation:
1.I have viewControler and in method viewDidLoad i created subview and add it to a this view. 2.My subView (UIImageView) colled Kvadrat and in method. Here i am cooling my other class and here method.
-(void) setKorpa: (Korpa *)k { mKorpa = k; NSLog (@"Number of elements in array = %i", [[mKorpa vratiSveKvadrate] count]); }
When i try this in touchesBegan event it sends error.
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog (@"Number of elements in array = %i", [[mKorpa vratiSveKvadrate] count]); }
Error: * -[CFArray objectAtIndex:]: message sent to deallocated instance 0x3b1e750
It looks like that when is event is triggered, something hapends with object mKorpa. Here is the same questions but i didn't solve it.
http://stackoverflow.com/questions/1989591?tab=votes#tab-top