MKDropdownMenu icon indicating copy to clipboard operation
MKDropdownMenu copied to clipboard

Layout Error in iOS 11

Open vvard3n opened this issue 7 years ago • 5 comments

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

vvard3n avatar Nov 17 '17 08:11 vvard3n

Same issue

EvsenevDev avatar Jan 31 '18 20:01 EvsenevDev

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

vvard3n avatar Feb 06 '18 01:02 vvard3n

@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.

maxkonovalov avatar Feb 10 '18 19:02 maxkonovalov

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 avatar Feb 26 '18 08:02 vvard3n

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

vvard3n avatar Feb 26 '18 08:02 vvard3n