DayFlow icon indicating copy to clipboard operation
DayFlow copied to clipboard

Issues with Navigation Controller

Open albertobitto opened this issue 11 years ago • 1 comments

Hi, I'm experiencing some weird behaviour when DFDatePickerViewController is embedded in a Navigation Controller: the date picker view doesn't always scroll to current date when appearing.

After some research, I came to the conclusion that it depends on how the view controller is configured on storyboard/interface builder. Mostly, I played with two flags that seem to change the behaviour of your component: "Resize view from NIB" (Layout) and "Under Top Bars" (Extend Edges).

The weird thing is that with the same configuration, the view controller may behave differently on 3.5" and 4" devices (either physical or simulated).

This is what I found:

  • on 4" devices, the scrolling always works, except when only "Resize view from NIB" is checked;
  • on 3.5" devices, the scrolling works only when both flags are checked.

Thank you

albertobitto avatar Jan 22 '14 11:01 albertobitto

I think the edge insets are interfering with the content offset.

We should patch this weird behavior.

On Jan 22, 2014, at 19:27, Punkers [email protected] wrote:

Hi, I'm experiencing some weird behaviour when DFDatePickerViewController is embedded in a Navigation Controller: the date picker view doesn't always scroll to current date when appearing.

After some research, I came to the conclusion that it depends on how the view controller is configured on storyboard/interface builder. Mostly, I played with two flags that seem to change the behaviour of your component: "Resize view from NIB" (Layout) and "Under Top Bars" (Extend Edges).

The weird thing is that with the same configuration, the view controller may behave differently on 3.5" and 4" devices (either physical or simulated).

This is what I found:

  • on 4" devices, the scrolling always works, except when only "Resize view from NIB" is checked;
  • on 3.5" devices, the scrolling works only when both flags are checked.

Thank you

— Reply to this email directly or view it on GitHubhttps://github.com/evadne/DayFlow/issues/7 .

evadne avatar Jan 22 '14 11:01 evadne