i have tried to put glpaint in uiviewcontroller. i'm facing some wierd problem after dismissing the the view controller with glpaint, the uiview controller, which have the option to launch glpaint view controller, gets deallocated. but how this happens. its seems like a puzzle to me.
-[CALayer setNeedsLayout]: message sent to deallocated instance xxxxxxx
download glpaint implmented in uiview controller
can someone please take a look and tell us why this happens or how to prevent it. thanks in advance!
edit:
painter *vpaint=[[[painter alloc] initWithNibName:@"painter" bundle:nil] autorelease];
[self.navigationController pushViewController:vpaint animated:YES];
and then returning back causes that error
[self.navigationController popViewControllerAnimated:YES];
Solution(SO doenst allow me to answer my own question due low reputation?! anyway):
i found it!!!!!!! the xib file is a subclass of PaintingWindow which UIWindow. for the time being setting it as UIView as default, it works perfectly. i have to see where should i implement the gesture recognition. thanks for helping @shahid and @kai :D