Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Fixing iOS7 hiding search bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Jan 30, 2014
1 parent 3633606 commit 925cad2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Classes-iOS/GHUnitIOSAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application {
GHUnitIOSViewController *viewController = [[GHUnitIOSViewController alloc] init];
[viewController loadDefaults];
navigationController_ = [[UINavigationController alloc] initWithRootViewController:viewController];
CGSize size = [[UIScreen mainScreen] bounds].size;
window_ = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)];
window_ = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
window_.backgroundColor = [UIColor whiteColor];
window_.rootViewController = navigationController_;
[window_ addSubview:navigationController_.view];
[window_ makeKeyAndVisible];

// Delete all interim saved images from previous UI tests
Expand Down
5 changes: 2 additions & 3 deletions Classes-iOS/GHUnitIOSTestViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ - (id)init {


- (void)loadView {
testView_ = [[GHUnitIOSTestView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
testView_ = [[GHUnitIOSTestView alloc] init];
testView_.controlDelegate = self;
self.view = testView_;
}
Expand All @@ -56,8 +56,7 @@ - (BOOL)shouldAutorotate {
return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}

Expand Down
2 changes: 2 additions & 0 deletions Classes-iOS/GHUnitIOSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ @implementation GHUnitIOSViewController
- (id)init {
if ((self = [super init])) {
self.title = @"Tests";
if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;
}
return self;
}
Expand Down

0 comments on commit 925cad2

Please sign in to comment.