Skip to content

Commit

Permalink
Fixed bug where sliding off Panel B wouldn't set the screenshot prope…
Browse files Browse the repository at this point in the history
…rly.
  • Loading branch information
ktatroe committed Jun 26, 2012
1 parent 331a12a commit b0f6985
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion SidePanel/MenuViewController.m
Expand Up @@ -114,7 +114,7 @@ - (void) slideThenHide
}];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
Expand Down
13 changes: 8 additions & 5 deletions SidePanel/PanelAViewController.m
Expand Up @@ -14,35 +14,38 @@ @interface PanelAViewController ()

@implementation PanelAViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- (id) initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

if (self) {
// Custom initialization
}

return self;
}

- (void)viewDidLoad
- (void) viewDidLoad
{
[super viewDidLoad];

appDelegate.contentViewController = self;
}

- (void)viewDidUnload
- (void) viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction) slideMenuButtonTouched
{
appDelegate.contentViewController = self;

[appDelegate showSideMenu];
}

Expand Down
14 changes: 8 additions & 6 deletions SidePanel/PanelBViewController.m
Expand Up @@ -14,34 +14,36 @@ @interface PanelBViewController ()

@implementation PanelBViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- (id) initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

if (self) {
// Custom initialization
}

return self;
}

- (void)viewDidLoad
- (void) viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}

- (void)viewDidUnload
- (void) viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction) slideMenuButtonTouched
{
appDelegate.contentViewController = self;

[appDelegate showSideMenu];
}

Expand Down

0 comments on commit b0f6985

Please sign in to comment.