摄像头增加AP配网模式,bug修改,bugly id修改
摄像头增加AP配网模式,bug修改,bugly id修改 其他页面修改,细节处理
This commit is contained in:
@@ -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;
|
||||
/**
|
||||
获取手机型号
|
||||
*/
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user