Browse files

Fixing iOS7 hiding search bar.

  • Loading branch information...
1 parent 3633606 commit 925cad295228b9f7f5904fe3665a313f3e362623 @gabriel gabriel committed Jan 29, 2014
View
5 Classes-iOS/GHUnitIOSAppDelegate.m
@@ -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
View
5 Classes-iOS/GHUnitIOSTestViewController.m
@@ -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_;
}
@@ -56,8 +56,7 @@ - (BOOL)shouldAutorotate {
return YES;
}
-- (NSUInteger)supportedInterfaceOrientations
-{
+- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
View
2 Classes-iOS/GHUnitIOSViewController.m
@@ -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;
}

0 comments on commit 925cad2

Please sign in to comment.