Open
Description
I have added some UI elements on the right side of the UINavigationBar. It is cropped on Windows. Even though you resize the window, it maintains cropped state. I am including the code and screen shots:
//Add button to NavigationController
UIBarButtonItem *btnLorem = [[UIBarButtonItem alloc] initWithTitle:@"Lorem" style:UIBarButtonItemStylePlain target:self action:@selector(showLorem:)];
UIBarButtonItem *btnWaterfall = [[UIBarButtonItem alloc] initWithTitle:@"Waterfall" style:UIBarButtonItemStylePlain target:self action:@selector(showWaterfall:)];
slFontSize = [[UISlider alloc] initWithFrame:CGRectMake(0, 0, 180, 50)];
[slFontSize addTarget:self action:@selector(changeFontSize:) forControlEvents:UIControlEventValueChanged];
slFontSize.backgroundColor = [UIColor clearColor];
slFontSize.minimumValue = 60.0;
slFontSize.maximumValue = 700.0;
slFontSize.continuous = YES;
slFontSize.value = 160.0;
UIBarButtonItem *scrubberItem = [[UIBarButtonItem alloc] initWithCustomView:slFontSize];
NSArray *buttonArray = [NSArray arrayWithObjects:btnLorem, btnWaterfall, scrubberItem, nil];
self.navigationItem.rightBarButtonItems = buttonArray;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment