I'm having trouble getting components added through the Interface Builder to work on the iPhone. It works perfectly in the simulator, but not on the device. When debugging I found that the events are handled on exit, instead of when i actually press the button. Anyone else run into this issue?
edit: after some investigation, it turns out somehow rendering with core graphics messes it up. If drawRect function in the View is empty, Interface Builder events work like a charm. but the moment i call CGContextDrawImage, they stop being handled are a simply queued up. When the app is closed, all events are handled.
my draw function is simple
-(void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextClearRect(context, rect);
CGContextDrawImage(context, rect, image);
CGContextFlush(context);
}