KLCPopup
KLCPopup copied to clipboard
Change frame of popup
Hello. I have popup with X button on top (to dismiss). I also have two text fields in my popup. Whole popup is connected to XIB, and I normally present it. But when I start typing something inside text field, keyboard hides the popup, so I created method : -(void)textFieldDidBeginEditing:(UITextField *)textField { [UIView animateWithDuration:0.6 animations:^{ [self setCenter:CGPointMake(self.superview.frame.size.width/2, 85)]; }]; } I change center of the popup so it is not hidden under keyboard, but then the X button is not clickable. It looks like the visible popup moved up, and the "clickable area" remains where it was. The X is outside the "clickable area", so I can't interact with it. How to solve it?
USE [popup showWithLayout:KLCPopupLayoutCenter];