iOS13,获取WiFi名称需定位;暗黑模式禁用

This commit is contained in:
wbzhan 2019-10-15 08:45:11 +08:00
parent d72f71f4df
commit 382d44ae13
4 changed files with 20 additions and 23 deletions

View File

@ -15424,7 +15424,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10.1.7;
CURRENT_PROJECT_VERSION = 10.1.8;
DEVELOPMENT_TEAM = WFX8GD5HFX;
ENABLE_BITCODE = NO;
ENABLE_TESTABILITY = YES;
@ -15541,7 +15541,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10.1.7;
CURRENT_PROJECT_VERSION = 10.1.8;
DEVELOPMENT_TEAM = WFX8GD5HFX;
ENABLE_BITCODE = NO;
ENABLE_TESTABILITY = YES;

View File

@ -407,6 +407,8 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>

View File

@ -253,7 +253,6 @@ Assign BOOL isInitHostoryView;
UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
back.frame = CGRectMake(0,0,48,44);
[back setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
// [_bakbutton setBackgroundImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
[back addTarget: self action: @selector(clickBack) forControlEvents: UIControlEventTouchUpInside];
back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
@ -419,15 +418,12 @@ Assign BOOL isInitHostoryView;
}
}
#pragma mark----socket----
-(void)ifishDeviceLogInFail{
// self.mainTableView.userInteractionEnabled=NO;
}
//socket
-(void)socketDidGetBackmsgData:(NSData *)data onsoket:(AsyncSocket *)sock{
self.mainTableView.userInteractionEnabled=YES;
NSLog(@"TwoControlView收到服务器的回执--->%@",data);
@ -480,7 +476,7 @@ Assign BOOL isInitHostoryView;
//
IfishHotBarVo*vo1=self.datas[1];
if (!IsEmptyStr(self.vo.upTeamp)) {
vo1.subTitle = [NSString stringWithFormat:@"%.1f°c%.1f°c",[self.vo.downTeamp floatValue],[self.vo.upTeamp floatValue]];
vo1.subTitle = [NSString stringWithFormat:@"%.1f°c~%.1f°c",[self.vo.downTeamp floatValue],[self.vo.upTeamp floatValue]];
}
self.vo.wornCode=[info substringWithRange:NSMakeRange(44, 2)];
// self.vo.wornCode=[NSString stringWithFormat:@"%llu",[dataContorl hexToTen:self.vo.wornCode]];
@ -629,9 +625,6 @@ Assign BOOL isInitHostoryView;
header.sendAdr=self.devicemodel.macAddress;
header.reciceAdr=self.devicemodel.macAddress;
header.lenth=@"13";
// NSString*str=[NSString stringWithFormat:@"%@0",num];
NSString*crc=@"0000";
num=[dataContorl ToHex:num.longLongValue*10];
if (num.length<4) {

View File

@ -27,7 +27,7 @@
#import "IfishConnectingView.h"
#import "PushMasssageWebViewController.h"
#import "IfishUserObsever.h"
#import <CoreLocation/CoreLocation.h>
#import "ConnectHotpotViewController.h"
#import "ConAquarNowWiFiPwdVC.h"
@interface EspTouchDelegateImpl : NSObject<ESPTouchDelegate>
@ -85,6 +85,7 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
@property(nonatomic,strong)IfishConnectingView *connectingView;
Strong CLLocationManager *locationManager;//iOS13,WiFi
@end
//extern BOOL formLogIn;//
@ -100,11 +101,7 @@ extern BOOL isfromCameraView;
_deviceArry =[[NSMutableArray alloc]init];
[self updateUI];
[self getSSid];
//UI
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wifiviewkeyboradWillShow:) name:UIKeyboardWillChangeFrameNotification object:nil];
_wifiTextFiled.delegate=self;
_wifiTextFiled.layer.masksToBounds=YES;
_wifiTextFiled.layer.cornerRadius=5;
@ -115,17 +112,11 @@ extern BOOL isfromCameraView;
}
UIView*phoneView=[[UIView alloc]initWithFrame:CGRectMake(0,0, 9, 10)];
self.wifiTextFiled.leftView=phoneView;
self.wifiTextFiled.textColor = RGB_51;
self.wifiTextFiled.leftViewMode=UITextFieldViewModeAlways;
[self addTitleViewWithTitle:self.vcTitle];
// UIBarButtonItem*rightItem=[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"qr"] style:UIBarButtonItemStyleDone target:self action:@selector(rightButtonClickItem:)];
// self.navigationItem.rightBarButtonItem=rightItem;
//setBackButtonBackgroundImage:[backImage resizableImageWithCapInsets:UIEdgeInsetsMake(0,0,0,0)
//self.rightButton
//[self.rightItem setBackButtonTitlePositionAdjustment:UIOffsetMake(20,0) forBarMetrics:UIBarMetricsDefault];
//[self.rightItem setBackgroundVerticalPositionAdjustment:60 forBarMetrics:UIBarMetricsDefault];
self.rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
self.rightButton.frame = CGRectMake(0, 0, 50, 44);
@ -142,6 +133,8 @@ extern BOOL isfromCameraView;
[self.shuoMingShuBtn addTarget:self action:@selector(shuoMingShuBtnAction:) forControlEvents:UIControlEventTouchUpInside];
[self creatConnectStateUI];
//WiFi
[self getSSid];
}
- (void)updateUI {
@ -496,6 +489,15 @@ extern BOOL isfromCameraView;
// 5CCF7F0065CA
}
-(void)checkLocation{
NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];
CGFloat version = [phoneVersion floatValue];
// iOS13
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined && version >= 13) {
self.locationManager = [[CLLocationManager alloc] init];
[self.locationManager requestWhenInUseAuthorization];
}
}
// refer to http://stackoverflow.com/questions/5198716/iphone-get-ssid-without-private-library
- (NSDictionary *)fetchNetInfo
{