Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CRToast/CRToastViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ - (BOOL)shouldAutorotate {
return _autorotate;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}

- (BOOL)prefersStatusBarHidden {
return [UIApplication sharedApplication].statusBarHidden;
}
Expand Down
11 changes: 6 additions & 5 deletions Example/CRToastDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
307C71BC1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 307C71BB1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.m */; };
464D04F01BD2258200E0E90A /* CRToast.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 464D04E61BD2248100E0E90A /* CRToast.framework */; };
464D04F11BD2258200E0E90A /* CRToast.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 464D04E61BD2248100E0E90A /* CRToast.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5E2FFB5718367C01003333F8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E2FFB5618367C01003333F8 /* Foundation.framework */; };
Expand Down Expand Up @@ -66,6 +67,8 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
307C71BA1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UINavigationControllerWIthUpsideDownSupport.h; sourceTree = "<group>"; };
307C71BB1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UINavigationControllerWIthUpsideDownSupport.m; sourceTree = "<group>"; };
464D04DF1BD2248100E0E90A /* CRToast.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CRToast.xcodeproj; path = ../CRToast.xcodeproj; sourceTree = "<group>"; };
5E2FFB5318367C01003333F8 /* CRToastDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CRToastDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
5E2FFB5618367C01003333F8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -148,6 +151,8 @@
5E2FFB8D18367CA3003333F8 /* MainViewController.xib */,
5E2FFB6818367C01003333F8 /* Images.xcassets */,
5E2FFB5D18367C01003333F8 /* Supporting Files */,
307C71BA1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.h */,
307C71BB1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.m */,
);
path = CRToastDemo;
sourceTree = "<group>";
Expand Down Expand Up @@ -193,11 +198,6 @@
attributes = {
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Collin Ruffenach";
TargetAttributes = {
5E2FFB5218367C01003333F8 = {
DevelopmentTeam = 7AM27DZVQU;
};
};
};
buildConfigurationList = 5E2FFB4E18367C01003333F8 /* Build configuration list for PBXProject "CRToastDemo" */;
compatibilityVersion = "Xcode 3.2";
Expand Down Expand Up @@ -265,6 +265,7 @@
buildActionMask = 2147483647;
files = (
5E2FFB6718367C01003333F8 /* AppDelegate.m in Sources */,
307C71BC1D3CA6C200CE2EDC /* UINavigationControllerWIthUpsideDownSupport.m in Sources */,
5E2FFB6318367C01003333F8 /* main.m in Sources */,
5E2FFB8E18367CA3003333F8 /* MainViewController.m in Sources */,
);
Expand Down
3 changes: 2 additions & 1 deletion Example/CRToastDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#import "AppDelegate.h"
#import "MainViewController.h"
#import "UINavigationControllerWIthUpsideDownSupport.h"
#import <CRToast/CRToast.h>

@implementation AppDelegate
Expand All @@ -18,7 +19,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:[[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil]];
UINavigationController *navigationController = [[UINavigationControllerWIthUpsideDownSupport alloc] initWithRootViewController:[[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil]];
self.window.rootViewController = navigationController;
[self.window makeKeyAndVisible];
return YES;
Expand Down
13 changes: 13 additions & 0 deletions Example/CRToastDemo/UINavigationControllerWIthUpsideDownSupport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// UINavigationControllerWIthUpsideDownSupport.h
// CRToastDemo
//
// Created by Michael Hansen on 18/07/2016.
// Copyright © 2016 Collin Ruffenach. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationControllerWIthUpsideDownSupport : UINavigationController

@end
17 changes: 17 additions & 0 deletions Example/CRToastDemo/UINavigationControllerWIthUpsideDownSupport.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// UINavigationControllerWIthUpsideDownSupport.m
// CRToastDemo
//
// Created by Michael Hansen on 18/07/2016.
// Copyright © 2016 Collin Ruffenach. All rights reserved.
//

#import "UINavigationControllerWIthUpsideDownSupport.h"

@implementation UINavigationControllerWIthUpsideDownSupport

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}

@end