xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

XLFormViewController jumps when open as ModalFormSheet with assignFirstResponderOnShow #97

Open romanr opened 10 years ago

romanr commented 10 years ago

Create XLFormViewController with Form initialization:

 XLFormDescriptor * form;
form.assignFirstResponderOnShow=YES;

Open controller as FormSheet:


vc = [[XLFormViewController alloc] init];
vc.modalPresentationStyle=UIModalPresentationFormSheet;
[(UIViewController*)self presentViewController:vc animated:YES completion:nil];

result: controller opens and jumps to the right or left side of the screen.

image

romanr commented 10 years ago

It's more of a general issue not necessary specific to XLForm. Looks like it's caused by overlapping FormSheet animation and keyboard animation.