My iOS app contains rounded corners for the whole application (described here)
UIImage *overlayImg;
int offset;
if(IS_IPHONE_5) {
overlayImg = [UIImage imageNamed:@"rounded4inch.png"];
offset = 548;
} else {
overlayImg = [UIImage imageNamed:@"rounded.png"];
offset = 461;
}
CALayer *overlay = [CALayer layer];
overlay.frame = CGRectMake(0, 20, overlayImg.size.width,offset);
overlay.contents = (id)overlayImg.CGImage;
overlay.zPosition = 1;
[self.window.layer addSublayer:overlay];
But now my modal MFMailComposeViewController doesn't respond to touches. I cannot edit the input fields, send the mail, or dismiss it. It's just frozen and doesn't respond to touches.