maxkonovalov / MKDropdownMenu

🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
MIT License
524 stars 83 forks source link

Layout Error in iOS 11 #43

Open vvard3n opened 6 years ago

vvard3n commented 6 years ago

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 commented 6 years ago

Same issue

vvard3n commented 6 years ago

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

maxkonovalov commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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