Form icon indicating copy to clipboard operation
Form copied to clipboard

View transition bug when keyboard show, only in iOS 11

Open chy89310 opened this issue 5 years ago β€’ 7 comments

Hi, I have a problem when i try to run this project in a iOS11 device.

For detail check the gif: jul-19-2018 12-49-44

I happen only in iOS11, on both iphone and ipad.

chy89310 avatar Jul 19 '18 05:07 chy89310

If you want some details, here is my demo code:

# ViewController
- (IBAction)didButtonClick:(id)sender {
    NSArray *JSON = [NSJSONSerialization JSONObjectWithContentsOfFile:@"json.json"];
    FORMViewController *ctrl = [[FORMViewController alloc] initWithJSON:JSON andInitialValues:nil disabled:false];
    [self presentViewController:ctrl animated:true completion:nil];
}

here is the json content

# json.json
 [
  {
  "id":"group-id",
  "title":"Group title",
  "sections":[
              {
              "id":"section-0",
              "fields":[
                        {
                        "id":"first_name",
                        "title":"First name",
                        "type":"name",
                        "size":{
                        "width":30,
                        "height":1
                        }
                        }
                        ]
              }
              ]
  }
  ]

chy89310 avatar Jul 19 '18 06:07 chy89310

I've got this issue too, library is no longer usable with it… πŸ˜₯

AnthoPakPak avatar Oct 09 '18 15:10 AnthoPakPak

I've got this issue too, library is no longer usable with it… πŸ˜₯

you can refer to my commit in a fork repo. Which can solve the problem simply.

https://github.com/kevinsumios/Form/commit/c06ada3b5caf652a7d92551ce748df37ee5e3843

chy89310 avatar Oct 09 '18 18:10 chy89310

@chy89310 Thanks, I'll give it a try ! πŸ‘ From what I've see, you've simply removed all keyboard related stuff. Did you add another keyboard management or library (such as IQKeyboardManager) to handle view moving when opening keyboard ?

AnthoPakPak avatar Oct 09 '18 18:10 AnthoPakPak

@chy89310 Thanks, I'll give it a try ! πŸ‘ From what I've see, you've simply removed all keyboard related stuff. Did you add another keyboard management or library (such as IQKeyboardManager) to handle view moving when opening keyboard ?

Actually i don't, and that's the same problem i curious about. Since this work around works for me, i don't take much time to learn about how the view move by it self even though i remove the notification observer. Maybe it's a new feature of iOS 11 i guess.

chy89310 avatar Oct 09 '18 19:10 chy89310

@chy89310 Okay, I will look into it tomorrow and give you some feedback πŸ˜‰

AnthoPakPak avatar Oct 09 '18 19:10 AnthoPakPak

I guess this is iOS 11 and above?

3lvis avatar Oct 09 '18 21:10 3lvis