E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
uidevice
iOS 强制横屏
NSNumber*orienTarget=[NSNumbernumberWithInt:UIInterfaceOrientationLandscapeLeft];[[
UIDevice
currentDevice
夬大爷
·
2021-04-26 00:22
iOS 8设置CLLocation授权
1.调用CLLocation前,添加以下代码://获取授权if([
UIDevice
currentDevice].systemVersion.doubleValue>=8.0){//始终允许访问位置信息
BigPlane
·
2021-04-24 01:16
解决页面跳转时,搜索条闪烁的问题
当搜索条为导航条的titleView时,页面跳转会造成闪烁的问题,以下为解决办法,直接附代码:floatversion=[[[
UIDevice
currentDevice]systemVersion]floatValue
Mrxiaowang
·
2021-04-22 14:15
微信共存防封版伪代码分析
hopper,发现hook了以下6个方法.CHLoadClass_(0xe0f8,objc_getClass("NSBundle"));CHLoadClass_(0xe104,objc_getClass("
UIDevice
洪哥
·
2021-04-22 13:43
检测iPhone是否在充电
但在脑中想了一遍貌似没有做过这方面的东西,但是觉得在
UIDevice
中应该有相关的内容,于是找了找,总算找到相关的一些资料,另外在这里有一些相关的资料可以去看一看。
cy尘缘
·
2021-04-21 18:28
角标
application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{if([[
UIDevice
currentDevice
阿良天界
·
2021-04-20 19:59
swift-获取手机型号
最终在这里找到方法Swift获取手机型号、获取设备信息(OC/Swift)代码如下//导入相应的框架importDarwin//获取设备型号extension
UIDevice
{varmodelName:
figure_ai
·
2021-04-20 19:10
Swift获取手机型号
publicextension
UIDevice
{varmodelName:String{varsystemInfo=utsname()uname(&systemInfo)letmachineMirror
一页清风
·
2021-04-20 16:47
iOS控制屏幕随意旋转和状态栏的控制
你还需要了解的//NotethatUIInterfaceOrientationLandscapeLeftisequalto
UIDevice
OrientationLandscape
CoderLJW
·
2021-04-20 08:13
iOS 07、iOS的
UIDevice
的分类方法-快速获取设备信息/设备名称/产品名称等信息
iOS的分类方法,简言其作用为拓展类方法,增加类的多样性和功能性1、建立
UIDevice
的分类方法,本例采用的是命名为WYGDeviceInfo生成
UIDevice
+WYGDeviceInfo的声明文件和实现文件
echo海猫
·
2021-04-14 14:36
iOS MultipeerConnectivity
MultipeerConnectivity该篇单讲MultipeerConnectivity上菜设备作为服务端要有一个标志自己的PeerIDlazyvarme:MCPeerID={letpeer=MCPeerID(displayName:
UIDevice
·
2021-03-26 19:21
ios
MapKit - CLLocationManager
大概简介设备的朝向方向枚举/**CLDeviceOrientation*Discussion:*Specifiesaphysicaldeviceorientation,equivalentto
UIDevice
Orientation
张沛昌该昵称已被抢占
·
2021-03-12 00:25
调用设备距离感应器
一个方法,使用通知来实现-(void)proximityCenter:(NSNotificationCenter*)center{//判断接近和离开if([
UIDevice
currentDevice].
_君莫笑_
·
2021-03-11 01:44
iOS-获取手机信息 含iPhone (12,Pro, mini,ProMax)
获取手机系统版本[[
UIDevice
currentDevice]systemVersion]获取手机系统[[
UIDevice
currentDevice]systemName]获取手机型号+(NSString
iixzp
·
2020-12-23 15:53
Flutter 真正可以监听屏幕旋转的插件
IOS使用
UIDevice
Orientation
BeRicher
·
2020-12-14 00:25
iOS-横竖屏基础
一、基础知识1、初识3个枚举1.1、
UIDevice
.h文件中:设备方向typedefNS_ENUM(NSInteger,
UIDevice
Orientation){
UIDevice
OrientationUnknown
Burgess_9527
·
2020-11-22 00:26
iOS 监听横屏竖屏 隐藏状态栏
BOOL_isFullScreen;[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(rotated:)name:
UIDevice
OrientationDidChangeNotificationobject
coderiding
·
2020-11-21 15:04
ios
iOS 监听手机息屏、锁屏
-(void)observeSensor{//靠近听筒自动息屏[[
UIDevice
currentDevice]setProximityMonitoringEnabled:YES];/
MQ_Twist
·
2020-11-06 19:14
iOS 解决向UILabel文字最后插入N张图片,支持向限制行数的UILabel 最后一行插入,多余文字显示...
1、效果2、====直接上代码吧===//判断是否是ios7系统#definekIsIOS7[[[
UIDevice
currentDevice]systemVersion]floatValue]/***uilable
小緈福
·
2020-11-05 18:42
iOS屏幕转屏实现总结
依赖加速计才可以判断出设备当前的方向,通过加速计检测设备方向变化,将会发出
UIDevice
喔牛慢慢爬
·
2020-10-21 11:19
iOS-视频全屏逻辑
实现:1.检测设备方向[[
UIDevice
currentDevice]beginGeneratin
安处幽篁兮
·
2020-10-11 17:31
ios10百度推送收不到
applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions//在这个方法中写//iOS10下需要使用新的APIif([[[
UIDevice
currentDevice
贝勒老爷
·
2020-10-10 04:18
swift tabbar 自定义+号 底部34导航栏适配
//importFoundationimportUIKitextension
UIDevice
{//刘海屏,获取底部高度publicfuncgetBottomHeight()->CGFloat{vartabHeight
西部喜之郎
·
2020-10-06 10:22
#
swift
uniqueIdentifier在ios7不支持后的替代方法
UIDevice
的uniqueIdentifier方法在ios7就不支持了,为了获得设备相关的唯一标识符,参考了这里:https://github.com/Itayber/
UIDevice
-uniqueID
weixin_34221773
·
2020-09-16 13:25
PCH 中定义宏 系统版本
#defineIOS7([[
UIDevice
currentDevice].systemVersiondoubleValue]>=7.0)告诉系统不要把图片渲染成系统的颜色(蓝色)controller.tabBarItem.selectedImage
ae187931
·
2020-09-16 02:40
设备判断
.判断是否为ipad设备#defineisPad(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad)或NSString*modelString=[[
UIDevice
currentDevice
laigb
·
2020-09-15 14:21
iOS
iOS项目开发经验:【常用代码1】
UIApplicationsharedApplication]delegate];获取屏幕的大小CGRectframe=[[UIScreenmainScreen]bounds];获取当前系统的版本号 NSLog([[
UIDevice
c
scofieldcai专栏
·
2020-09-15 13:52
★iOS篇
iOS防抓包
当我们VPN和HTTP代理同时开启时检测是否开启了VPN我们可以看看除了en0之外还有没有其他的key-(BOOL)checkHasVPN{BOOLflag=NO;NSString*version=[
UIDevice
currentDe
MeteoriteMan
·
2020-09-14 19:08
网络
Proxy
防抓包
关于通过屏幕旋转确定view的layout的问题
之前在项目中,有一个UIImageView需要通过接收屏幕旋转的通知来计算它的大小及位置,开始我选择接收
UIDevice
OrientationDidChange通知来处理,后来发现个别情况计算出来的大小位置不对
鬼蟹
·
2020-09-14 02:21
UI
SwiftUI 小技巧之如果判断iPad并适配
代码letnavView=NavigationView{…}if
UIDevice
.current.userInterfaceIdiom==.pad{returnAnyView(navView.navigationViewStyle
知识大胖
·
2020-09-14 02:40
ios开发之消息推送(以信鸽推送为例)
#if__IPHONE_OS_VERSION_MAX_ALLOWED>=_IPHONE80_floatsysVer=[[[
UIDevice
currentDevice]systemVersion]floatValue
stardarlueng
·
2020-09-13 06:40
判断ipad横竖屏的方法 ----- 持续改进中 -----
DrviceOrientation=toInterfaceOrientation;然后在别的方法中使用方法一:直接获取设备的方法:self.interfaceOrientation方法二:通过下面的方法:
UIDevice
OrientationDO
墨鱼精
·
2020-09-12 18:06
IOS
应用
小胖说事30------iOS 强制转成横屏的方式
一直遇到这个问题,今天最终找到了解决方法.在我们的项目中常常遇到横竖屏切换,而又有某个特定的界面必须是特定的显示方式(横屏或竖屏).这就须要例如以下的处理了.强制转成横屏:if([[
UIDevice
currentDevice
weixin_33834075
·
2020-09-12 17:11
prensent一个半透明的viewcontroller 或者push 出一个viewcontroller 做present 动画
viewcontrollerNavigationController*nav=[[NavigationControlleralloc]initWithRootViewController:aViewController];if([[[
UIDevice
currentDevice
amy376X
·
2020-09-12 15:55
ui
push
viewcontroller
present
swift 获得手机IP(运营商IP和WiFi的IP)
print("手机用户自定义的名称===\(
UIDevice
.current.name)")print("设备名称systemName+systemVersion==\(
UIDevice
.current.systemName
weixin_33859844
·
2020-09-12 14:42
UITableViewCell 在IOS7的父视图是UITableViewWrapperView。
(2013-11-2816:11:12)转载▼标签:ios7兼容it分类:iOSiOS获取操作系统的版本[[[
UIDevice
currentDevice]systemVersion]floatValue
Nicky_HelloWorld
·
2020-09-12 06:33
IOS 设备旋转
1.在APPDelegate里,将[self.windowaddSubview:self.viewController.view];改为判断当前设备系统if([[[
UIDevice
currentDevice
lixin_li
·
2020-09-12 03:39
IOS
iOS
获取状态栏的方向
获取状态栏的方向
UIDevice
OrientationinterfaceOrientation=[[UIApplicationsharedApplication]statusBarOrientation
fang8380
·
2020-09-12 01:25
IOS开发
l
距离感应
距离感应器其实就那么几句话:[
UIDevice
currentDevice].proximityMonitoringEnabled=YES;[[NSNotificationCenterdefaultCenter
fanhaofei1234
·
2020-09-11 14:44
swift
ios
使用Uiautomator界面上有元素一直找不到
用uiautoamtorviwer里面可以看到这个元素但是却一直获取不到UiObject2addPublicNumber=m
Uidevice
.findObject(By.desc("添加"));用的是uiobject2
qq_35872172
·
2020-08-26 23:13
Android
UIScreen.bounds与屏幕方向和iOS版本的变化
竖屏CurrentDeviceVersion:9.1CurrentInterfaceOrientation:
UIDevice
OrientationPortrait[UIScreenmainScreen]
kDurian
·
2020-08-25 11:28
iOS 实用技术
一.实用技术距离传感器//开启距离距离传感器
UIDevice
.current.isProximityMonitoringEnabled=true//监听物体靠近或离开NotificationCenter.default.addObserver
Nbm
·
2020-08-25 08:51
iOS基础-加速器使用1
iOS基础开发教程--加速器的使用1加速器使用注意:允许接近显示屏发送通知-(void)viewDidLoad{[superviewDidLoad];[
UIDevice
currentDevice].proximityMonitoringEnabled
萝卜丝巾
·
2020-08-24 18:50
iOS获取设备型号和App版本号等信息(OC+Swift3.0)
本文参考http://www.cnblogs.com/YYSheng/p/5550127.html获取设备名称OC代码NSString*deviceName=[[
UIDevice
currentDevice
xuzenghuifeng
·
2020-08-24 06:05
OC
swift
ios
Android 9.0 蓝牙配对流程
关注我,更多程序猿的日常信息等你哦1、
UIDevice
ListPreferenceFragment是蓝牙扫描到的设备列表,点击其中一个蓝牙设备,调用onPreferenceTreeClick方法开始蓝牙的配对过程
二十岁了还没有去过星巴克
·
2020-08-24 06:09
蓝牙
IOS获取设备类型 (更新添加iPhone6 & iPhone6 Plus)
6.xEditionBSDLicense,UseatyourownriskModifiedbyEricHoracekforMonospaceLtd.on2/4/13*/#include#import"
UIDevice
-Hardware.h
_Captain
·
2020-08-24 05:25
IOS
ios屏幕旋转
layoutSubviews方法中监听statusBarOrientation,达到监听屏幕的横竖屏状态-(void)layoutSubviews{[self_shouldRotateToOrientation:(
UIDevice
Orientation
AntKing
·
2020-08-24 03:33
UUID DeviceID 及获取IPhone唯一标识符
iOS2.0版本以后
UIDevice
提供一个获取设备唯一标识符的方法uniqueIdentifier,通过该方法我们可以获取设备的序列号,这个也是目前为
杰克大王
·
2020-08-23 11:23
Unique Identifier for Iphone
UniqueIdentifierforIphoneReferfromUIClassiniphonesdk.The
UIDevice
classprovidesasingletoninstancerepresentingthecurrentdevice.FromthisinstanceyoucanobtaininformationaboutthedevicesuchasuniqueID
shark0001
·
2020-08-22 22:49
横竖屏自动响应viewWillLayoutSubviews
-(void)viewWillLayoutSubviews{[self_shouldRotateToOrientation:(
UIDevice
Orientation)[UIApplicationsharedApplication
semiBin
·
2020-08-22 20:31
iOS
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他