wimagguc / ios-custom-alertview

Custom UIAlertView. Continue adding images and UIViews to dialogs in iOS7+
Other
1.66k stars 394 forks source link

wrongs while its subview have a textfield #33

Open xuqee opened 10 years ago

xuqee commented 10 years ago

I added a textfield on the containerview ,but when i want to input some words the keyboard was covered!!!

albertoramonj commented 10 years ago

Maybe it's not the best way but I resolved this by adding:

define KEYBOARDSIZE 216

and changing this line in the "show" method:

[self setFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height - KEYBOARDSIZE)];

Hope it helps.

wimagguc commented 10 years ago

Hey @nnarayann, Are you using the latest code? This commit should have taken care of this (although only works with the non-deprecated init function and in case the keyboard is not visible before the dialog opens). If you have some example code to look at or need help, please feel free to find me elsewhere - perhaps in a DM on Twitter.

albertoramonj commented 10 years ago

Nop, I'll try it for sure and will comment here. By the way, any chance to improve the performance in older iPhones?.

Thanks a lot for your work!.