摄像头增加AP配网模式,bug修改,bugly id修改

摄像头增加AP配网模式,bug修改,bugly id修改
其他页面修改,细节处理
This commit is contained in:
kai
2019-11-07 22:29:04 +08:00
parent 9c0d42d796
commit 3da5a875ec
13 changed files with 225 additions and 111 deletions
+4
View File
@@ -8,6 +8,7 @@
#import <Foundation/Foundation.h>
#import "UIColor+HexString.h"
#import <SystemConfiguration/CaptiveNetwork.h>
@interface CommonUtils : NSObject
typedef enum{
@@ -20,6 +21,9 @@ typedef enum{
#define separaterColor HEXCOLOR(@"#e5e5e5")
//系统默认整体页面背景色
#define COLOR_Background HEXCOLOR(@"#f6f6f6")
/// 获取WiFi信息
+ (NSDictionary *)getSSIDInfo;
/**
获取手机型号
*/
+14
View File
@@ -287,6 +287,20 @@
return timeString;
}
+ (NSDictionary *)getSSIDInfo
{
NSArray *interfaceNames = CFBridgingRelease(CNCopySupportedInterfaces());
NSDictionary *SSIDInfo;
for (NSString *interfaceName in interfaceNames) {
SSIDInfo = CFBridgingRelease(
CNCopyCurrentNetworkInfo((__bridge CFStringRef)interfaceName));
BOOL isNotEmpty = (SSIDInfo.count > 0);
if (isNotEmpty) {
break;
}
}
return SSIDInfo;
}
//view围绕任意一点旋转
CGAffineTransform GetCGAffineTransformRotateAroundPoint(float centerX, float centerY ,float x ,float y ,float angle)
{