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

Layout Error in iOS 11 #43

Open
vvard3n opened this issue Nov 17, 2017 · 5 comments
Open

Layout Error in iOS 11 #43

vvard3n opened this issue Nov 17, 2017 · 5 comments

Comments

@vvard3n
Copy link

vvard3n commented Nov 17, 2017

set a MKDropdownMenu in VC1 NavigationBar TitileView,
than nav push to VC2,
than back to VC1.
you can see that MKDropdownMenu layout error.

in your Demo project, MKDropdownMenu is lose, can't find it

000

@EvsenevDev
Copy link

Same issue

@vvard3n
Copy link
Author

vvard3n commented Feb 6, 2018

Now, I try to renew MKDropdownMenu to fix this error.

@maxkonovalov
Copy link
Owner

@vvard3n @EvsenevDev hi guys, sorry for the delay, looks like this issue has been fixed by #38 but not yet pushed to cocoapods. Please let me know if the latest master branch works for you.

@vvard3n
Copy link
Author

vvard3n commented Feb 26, 2018

nope. imperfect
now, it can show when vc pop back.
but dropdown view width is changed. I dont want to change it

                    MKDropdownMenu *dropdownMenu = [[MKDropdownMenu alloc] initWithFrame:CGRectMake(0, 0, 150, 44)];
                    self.dropdownMenu = dropdownMenu;
                    dropdownMenu.dataSource = self;
                    dropdownMenu.delegate = self;
                    dropdownMenu.backgroundDimmingOpacity = 0;
                    
                    UIImage *indicator = [UIImage imageNamed:@"triangle_14x14"];
                    dropdownMenu.disclosureIndicatorImage = indicator;

                    UIImageView *spacer = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"triangle"]];
                    spacer.contentMode = UIViewContentModeCenter;
                    dropdownMenu.spacerView = spacer;
                    
                    dropdownMenu.rowTextAlignment = NSTextAlignmentCenter;
                    dropdownMenu.dropdownShowsTopRowSeparator = NO;
                    dropdownMenu.dropdownBouncesScroll = NO;
                    dropdownMenu.dropdownRoundedCorners = UIRectCornerAllCorners;
                    dropdownMenu.useFullScreenWidth = YES;
                    dropdownMenu.fullScreenInsetLeft = 100;
                    dropdownMenu.fullScreenInsetRight = 100;
                    self.navigationItem.titleView = dropdownMenu;

@vvard3n
Copy link
Author

vvard3n commented Feb 26, 2018

my pull request can fix this question.
bug it can't change size when inited.

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

3 participants