add .gitignore

This commit is contained in:
JoyWayer
2023-12-27 20:38:37 +08:00
parent b106a628a5
commit f6343426d6
515 changed files with 104217 additions and 199 deletions

View File

@@ -0,0 +1,118 @@
//
// NavgationController.m
// TestNav
//
// Created by iTrends on 13-4-18.
// Copyright (c) 2013 iTrends. All rights reserved.
//
#import "NavgationController.h"
#import "AppDelegate.h"
#import "threeView.h"
@interface NavgationController ()
@end
@implementation NavgationController
@synthesize navType=_navType;
-(id)initWithRootViewController:(UIViewController *)rootViewController Navtype:(NavgationType)navType
{
if(self){
self.navType=navType;
self=[super initWithRootViewController:rootViewController];
}
return self;
}
//- (NSUInteger)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0){
// // if ([[FuncPublic GetDefaultInfo:@"stateOrie"] isEqualToString:@"yes"]) {
// switch (self.navType) {
// case NavgationTypeMaskPortrait:
// return UIInterfaceOrientationMaskPortrait|UIInterfaceOrientationMaskPortraitUpsideDown;
// break;
// case NavgationTypeMaskLandscape:
// return UIInterfaceOrientationMaskLandscape;
// break;
// case NavgationTypeMaskAll:
// return UIInterfaceOrientationMaskAll;
// break;
// default:
// break;
// }
// }else
// {
// AppDelegate *delegate=[UIApplication sharedApplication].delegate;
// return delegate.oriention;
// }
//}
//- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
//
// //return UIInterfaceOrientationLandscapeLeft;
// switch (self.navType) {
// case NavgationTypeMaskPortrait:
// return UIInterfaceOrientationPortrait;
// break;
// case NavgationTypeMaskLandscape:
// return UIInterfaceOrientationLandscapeLeft;
// break;
// case NavgationTypeMaskAll:
// return UIInterfaceOrientationLandscapeLeft|UIInterfaceOrientationPortrait;
// break;
// default:
// break;
// }
//
//}
// A
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return [self.viewControllers.firstObject supportedInterfaceOrientations];
}
-(BOOL)shouldAutorotate{
if ([FuncPublic SharedFuncPublic]._CurrentShow==3) {
return NO;
}
return self.viewControllers.firstObject.shouldAutorotate;
}
//viewcontroller -
//-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
//
// return UIInterfaceOrientationLandscapeRight;
//
//}
/*
ios6.0
nav->rootviewcontroller
selfxxx.navigationcontroller
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation NS_DEPRECATED_IOS(2_0, 6_0){
switch (self.navType) {
case NavgationTypeMaskPortrait:
return UIInterfaceOrientationIsPortrait(toInterfaceOrientation);
break;
case NavgationTypeMaskLandscape:
return UIInterfaceOrientationIsPortrait(toInterfaceOrientation);
break;
case NavgationTypeMaskAll:
return YES;
break;
default:
break;
}
}*/
@end