Note that there are some explanatory texts on larger screens.

plurals
  1. POOdd bug with UISplitView - Viewport scales to iPhone size?
    primarykey
    data
    text
    <p>I'm working with Objective-C for the first time, and have an odd bug in an application that was given to me. The following pictures demonstrate the problem I'm having:</p> <p><img src="https://i.stack.imgur.com/EkFAy.png" alt="Normal display of rotated screen"></p> <p>This screen displays when the user rotates the iPad. This is normal. The control at the top (&lt;) allows the user to hide the subview on the left side. Upon hiding the subview, the dark blue portion should expand to fill the screen. Prior to my working with the application, this worked. Now, this is happening:</p> <p><img src="https://i.stack.imgur.com/V51Nd.png" alt="Bug upon hiding splitview"></p> <p>I haven't found anything to explain why, exactly, this is happening. Any ideas?</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; [self addGestureRecognizers]; // initialize the "&lt;" button... toggleButton = [[UIBarButtonItem alloc] initWithTitle:[PanoUtils leftIndicator] style:UIBarButtonItemStylePlain target:self action:@selector(toggleScreen)]; // the annotate button... annotateButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Pencil.png"] style:UIBarButtonItemStylePlain target:self action:@selector(annotateTapped)]; // the done button for annotations... doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneAnnotateTapped)]; // a flexible spacer... nameFieldSpacerButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; // the accelerometer button... alignButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"gyro.png"] style:UIBarButtonItemStylePlain target:self action:@selector(align:)]; // and the search button. searchButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Search.png"] style:UIBarButtonItemStylePlain target:self action:@selector(searchButtonTouched:)]; // customize the align button after the user selects it. UIImage *buttonImage = [UIImage imageNamed:@"gyroSelected.png"]; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:buttonImage forState:UIControlStateNormal]; button.frame = CGRectMake(0, 0, buttonImage.size.width, buttonImage.size.height); [button addTarget:self action:@selector(align:) forControlEvents:UIControlEventTouchUpInside]; alignSelButton = [[UIBarButtonItem alloc] initWithCustomView:button]; NSMutableArray *itemsArray = [toolBar.items mutableCopy]; [itemsArray addObject:searchButton]; [itemsArray addObject:annotateButton]; [itemsArray addObject:alignButton]; [toolBar setItems:itemsArray animated:NO]; [itemsArray release]; [self adjustToggleButton]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload