Note that there are some explanatory texts on larger screens.

plurals
  1. POHow implement splitview for iphone os 4.2?
    primarykey
    data
    text
    <p>I have use the custom splitview in the my application.</p> <p>custom splitview .h file</p> <pre><code>@interface CustomUISplitViewController :UISplitViewController { BOOL keepMasterInPortraitMode; BOOL keepMasterInPortraitMode1; } </code></pre> <p>and .m file is</p> <pre><code>-(void) viewWillAppear:(BOOL)animated { keepMasterInPortraitMode1=keepMasterInPortraitMode; if(keepMasterInPortraitMode1 == NO) { if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight) { UIViewController* master = [self.viewControllers objectAtIndex:0]; UIViewController* detail = [self.viewControllers objectAtIndex:1]; [self setupPortraitMode:master detail:detail]; } } if (self.interfaceOrientation == UIInterfaceOrientationPortrait || self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) { UIViewController* master = [self.viewControllers objectAtIndex:0]; UIViewController* detail = [self.viewControllers objectAtIndex:1]; [self setupPortraitMode:master detail:detail]; } } } - (void)setupPortraitMode:(UIViewController*)master detail:(UIViewController*)detail { //adjust master view CGRect f = master.view.frame; f.size.width = 220; f.size.height = 1024; f.origin.x = 0; f.origin.y =0; [master.view setFrame:f]; //adjust detail view f = detail.view.frame; f.size.width = 548; f.size.height = 1024; f.origin.x = 221; f.origin.y = 0; [detail.view setFrame:f]; } </code></pre> <p>This works correctly under iOS4.0 but under 4.2 I see only one view when the app runs. What could change between OS versions?</p>
    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.
 

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