KLCPopup icon indicating copy to clipboard operation
KLCPopup copied to clipboard

Change frame of popup

Open artur7 opened this issue 10 years ago • 1 comments

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?

artur7 avatar Mar 02 '15 11:03 artur7

USE [popup showWithLayout:KLCPopupLayoutCenter];

ahmad-atef-zz avatar Aug 30 '15 14:08 ahmad-atef-zz