Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For iPad horizontal picker is not horizontal at portrait orientation #10

Open
dsenash opened this issue Jan 22, 2017 · 0 comments
Open

Comments

@dsenash
Copy link

dsenash commented Jan 22, 2017

Hi,
I am doing application for iPhone and Ipad. For iPhone everything is correct with HorizontalPicker. For Iphone7 plus as well (similar as iPad realization of split view.)
For iPad I got something amazing.
Landscape is good. Portrait is wrong.
See screenshots:
issue_1
issue_2

Code about HorizontalPicker is so small:
// MARK: - HorizontalPickerViewProvider

func numberOfRowsInHorizontalPickerView(_ pickerView: HorizontalPickerView) -> Int {
    return titles.count
}

func horizontalPickerView(_ pickerView: HorizontalPickerView, titleForRow row: Int) -> String {
    return titles[row]
}

func horizontalPickerView(_ pickerView: HorizontalPickerView, didSelectRow row: Int) {
    horizontalMarker = row
    showGraph()
}

func useTwoLineModeForHorizontalPickerView(pickerView: HorizontalPickerView) -> Bool {
    return true
}

func textColorForHorizontalPickerView(pickerView: HorizontalPickerView) -> UIColor {
    return UIColor.darkText
}

func pickerViewShouldMask(pickerView: HorizontalPickerView) -> Bool {
    return true
}

Below is screenshot of Picker's constraints. It is inside View.
issue_3

Any ideas why?

Rg, Dmitry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant