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-(OC+Swift)机型判断
OC版本:///判断是不是ipad#defineYIsPad([[
UIDevice
currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad)/
iOS_我更专业
·
2023-02-07 12:29
iOS 横屏
NSNumber*value=[NSNumbernumberWithInt:UIInterfaceOrientationLandscapeRight];[[
UIDevice
currentDevice]setValue
Forever_HEN
·
2023-02-07 04:46
[
UIDevice
currentDevice].orientation返回方向不正确
[
UIDevice
currentDevice].orientation该方法在用户锁定屏幕是,永远返回
UIDevice
OrientationPortrait类型,导致获取设备方向出错。
迷路的安然和无恙
·
2023-02-06 18:26
【9】iOS开发·图标尺寸
一、机型尺寸的宏定义(持续更新中2019.11.04)//判断是否是ipad#defineIS_iPad([[
UIDevice
currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad
风青殇
·
2023-02-05 22:51
iOS去掉导航栏下面的横线
#defineKDeviceSystemVersion[
UIDevice
currentDevice].systemVersion.doubleValueif(KDeviceSystemVersion>=
维斯特洛荣
·
2023-02-04 19:08
IDFV 简介
如何获取IDFVNSString*vendor=[[[
UIDevice
currentDevice]identifierForVendor]UUIDString];//输出结果:94B854B0-AC0B
jiaxw32
·
2023-02-03 07:09
苹果设备的相关判断
一、判断设备01//设备名称02return[
UIDevice
currentDevice].name;0304//设备型号,只可得到是何设备,无法得到是第几代设备05return[
UIDevice
currentDevice
Niklaus_8871
·
2023-02-02 11:01
ios开发-获取手机相关信息
一、
UIDevice
//[[
UIDevice
currentDevice]systemName];//系统名//[[
UIDevice
currentDevice]systemVersion];//版本号//
冯龙胜
·
2023-01-31 19:53
iOS 获取手机电量 电量变化通知
#pragmamark-电池电量获取及监控-(void)checkAndMonitorBatteryLevel{//拿到当前设备
UIDevice
*device=[
UIDevice
currentDevice
WS_0909
·
2023-01-30 18:58
iOS进入系统相册 返回取消按钮多次点击才可以返回问题
navigationControllerdidShowViewController:(UIViewController*)viewControlleranimated:(BOOL)animated{if([
UIDevice
currentDevice
fangzhiyuan
·
2023-01-29 23:56
iOS/Andorid电量监听
iOS#pragmamark-电池电量获取及监控-(void)checkAndMonitorBatteryLevel{//拿到当前设备
UIDevice
*device=[
UIDevice
currentDevice
程序猿老D
·
2023-01-29 20:50
swift 强制横屏
在viewDidLoad()中添加
UIDevice
.current.setValue(UIInterfaceOrientatio
运柱
·
2023-01-26 17:13
react-native-orientation横竖屏适配 iOS 16 + , 以及Android横屏刘海屏沉浸式
IOS[IOS16+][Orientation]BUGINCLIENTOFUIKIT:Setting
UIDevice
.orientationisnotsupported.PleaseuseUIWindowScene.requestGeometryUpdate
物联白菜
·
2023-01-10 14:26
iOS10-iOS16主要适配回顾
ios16适配APP切换横竖屏问题iOS16之前切换横竖屏使用的是
UIDevice
的setValue:forKey:方法进行切换。
冷武橘
·
2022-11-28 16:00
iOS16 适配问题 剪贴板问题
iOS16适配问题剪贴板问题1.隐私权限增强,如通过
UIDevice
获取设备名称时,无法获取用户的信息,只能获取设备对应的名称。
追风少年_fc4e
·
2022-10-25 10:46
iOS16屏幕旋转
iOS16出来一段时间了,个别app出现屏幕不能强制旋转全屏,原因就是iOS不再支持
UIDevice
方式的旋转下面是适配代码,请参考:首先是在Appdelegate里面添加代码@property(nonatomic
LWide
·
2022-10-14 16:19
iOS 16.0 适配记录
1、屏幕旋转问题:[Orientation]BUGINCLIENTOFUIKIT:Setting
UIDevice
.orientationisnotsupported.PleaseuseUIWindowScene.requestGeometryUpdate
独立开发者Lau
·
2022-10-11 15:31
iOS 16适配屏幕旋转强制转屏切换大总结
问题原因:苹果又给我们挖坑了,iOS16屏幕旋转报错:[Orientation]BUGINCLIENTOFUIKIT:Setting
UIDevice
.orientationisnotsupported.PleaseuseUIWindowScene.requestGeometryUpdate
TheLittleBoy
·
2022-09-28 07:12
iOS
ios
xcode
objective-c
iOS问题集、适配新特性
、iOS16swfit横屏处理UIWindowScene.requestGeometryUpdate(2022-9-21)[Orientation]BUGINCLIENTOFUIKIT:Setting
UIDevice
.orientationisnotsupported.PleaseuseUIWindowScene.requestGeometryUpdate
lukyy
·
2022-09-26 10:14
iOS16适配
UIDevice
(屏幕旋转)[NewFeatures]iOSappscannow
心若向阳_无谓悲伤
·
2022-09-24 19:22
iOS
xcode
ios
iOS16 横竖屏切换适配
之前的方式大部分都是采取设置设备的方向来实现的,但是在iOS16开始这种方式已经无效了,如果使用设置设备方向来实现横竖屏切换,在Xcode的控制台中会输出以下信息:[Orientation]BUGINCLIENTOFUIKIT:Setting
UIDevice
.orientationisnotsupported.PleaseuseUIWindowSc
CoderGuogt
·
2022-09-08 17:19
iOS16适配-屏幕旋转
声明:本文适配以iOS16bate2为基准背景iOS16在UIKIT上有了一些更改,废弃掉了一些修改方式,比如屏幕的横竖屏旋转,这一块之前有很多中处理方法,但是如果之前用的是基于
UIDevice
的,那在这次更新后就会遇到强制旋转屏幕不成功
不正常人类研究中心驴主任
·
2022-08-12 11:12
iOS实现手动和自动屏幕旋转
本文实例为大家分享了iOS实现手动和自动屏幕旋转的具体代码,供大家参考,具体内容如下首先iPhone中屏幕分为状态栏方向和设备方向typedefNS_ENUM(NSInteger,
UIDevice
Orientation
·
2022-07-21 15:57
iOS获取状态栏的高度(support iOS13)
1.OC:
UIDevice
+VGAddition.h@interface
UIDevice
(VGAddition)///顶部安全区高度+(CGFloat)vg_safeDistanceTop;///底部安全区高度
不要虚度美好的时光
·
2022-06-28 15:21
iOS 获取电池电量,屏幕亮度,蓝牙状态
1、电池电量funcopenBatteryListening(){
UIDevice
.current.isBatteryMonitoringEnabled=trueNotificationCenter.default.addObserver
我来也super
·
2022-06-24 09:49
IOS横竖屏以及适配
项目主要界面竖屏,部分界面横屏七、默认横屏无效的问题八、关于旋转后的适配问题九、APP启动即全屏一、最让人纠结的三种枚举刚开始接触屏幕旋转这块知识的时候,最让人抓狂的也许就是三种相关的枚举类型了,它们就是
UIDevice
Orientation
Faner_NG
·
2022-06-13 16:48
iOS 锁屏和息屏监听
//传感器(红外感应)打开[[
UIDevice
currentDevice]setProximityMonitoringEnabled:YES];//设置监听[[NSNotificationCenterdefaultCenter
_Waiting_
·
2022-04-07 11:21
IOS 判断是否为IPhoneX系列的刘海屏手机
#defineIS_IPHONE(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone)#defineIS_IOS_11([[[
UIDevice
currentDevice
剧变
·
2022-02-21 13:31
注册用户通知
*注册用户通知*/-(void)registerUserNotification{/*注册通知(推送)申请App需要接受来自服务商提供推送消息*///判读系统版本是否是“iOS8.0”以上if([[[
UIDevice
currentDevice
SMFly
·
2022-02-20 20:06
iOS 单个界面旋转屏幕
1创建
UIDevice
的category#importNS_ASSUME_NONNULL_BEGIN@interface
UIDevice
(Orientation)/***@interfaceOrientation
mapg
·
2022-02-18 22:30
iOS获取设备型号
Swift版本,复制可用,当然也可以不扩展
UIDevice
,在其他地方定义一个变量。目前更新到iPhoneX,后续更新可以参考这个资料库。OC版本,可以参考这篇文章。
CoffeeKid
·
2022-02-16 12:57
iOS系统键盘Window层注意事项
话不多说,上代码:NSString*version=[
UIDevice
cu
weian1
·
2022-02-16 11:15
Swift:UIKit 扩展工具箱
毕竟好记性不如烂笔头哈哈,这些文章记录了我的IOS成长历程,希望能与大家一起进步温馨提示:由于不支持目录跳转,大家可通过command+F输入目录标题后迅速寻找到你所需要的内容目录1、UIApplication的扩展2、
UIDevice
时光啊混蛋_97boy
·
2022-02-14 11:19
iOS 指纹解锁与数字解锁
不得不说,关于指纹解锁这儿的api真的很方便,刚刚给自己的项目加上了指纹,所以记录一下//1.判断版本if([
UIDevice
currentDevice].systemVersion.floatValue
LetBe
·
2022-02-14 08:47
ios 访问icould和系统本身的文件
pragmamark--发送文件-(void)onSendFileBtnPressed:(id)sender{if([[[
UIDevice
currentDevice]systemVersion]floatValue
墨凌风起
·
2022-02-11 12:28
Swift 获取、判断 系统版本号
1.通过
UIDevice
获取版本号//获取当前字符串类型的版本号信息,一般不会用作版本号判断letsysVersionString=
UIDevice
.current.systemVersion注:Swift
跃文
·
2022-02-10 13:02
解决iOS打电话提示框反应慢
callPhoneStr:(NSString*)phoneStrwithVC:(UIViewController*)selfvc{if(phoneStr.length>=10){NSString*str2=[[
UIDevice
currentDevice
恶棍01
·
2022-02-09 23:58
iOS 获取手机外壳颜色
UIDevice
*device=[
UIDevice
currentDevice];SELselector=NSSelectorFromString(@"deviceInfoForKey:");if(!
指尖划过的风
·
2022-02-09 13:45
(转)判断iPhoneX iPhoneXS iPhoneXR iPhoneXS Max
#defineisPad([[
UIDevice
currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad)//判断iPhone4系列#definekiPhone4
inc3ption
·
2022-02-06 14:32
iOS 有关手机信息的查询
在开发中有项目需求,我们会用到手机相关的一些信息1.手机系统版本:CGFloatversion=[[[
UIDevice
currentDevice]systemVersion]floatValue];2.
CoderKevinChan
·
2022-02-06 04:50
获取手机机身颜色
-(void)viewDidLoad{[superviewDidLoad];
UIDevice
*device=[
UIDevice
currentDevice];SELselector=NSSelectorFromString
WSGNSLog
·
2022-02-06 00:09
【iOS】获取设备的信息及唯一标识
1.获取设备信息1.1使用[
UIDevice
currentDevice]获取当前设备的一些信息(手机名称及系统版本等);1.2使用[[NSBundlemainBundle]infoDictionary]
HoyaWhite
·
2022-02-03 13:10
iOS 需要在viewWillDisappear执行的操作
selfforKeyPath:@"contentOffset"];(2)移除观察者[[NSNotificationCenterdefaultCenter]removeObserver:selfname:
UIDevice
OrientationDidChangeN
iOS程序媛ing
·
2021-11-29 17:03
UDID、IDFV、IDFA、UUID 的区别
UDID(UniqueDeviceIdentifier)iOS设备的唯一识别码,它由40位16进制数的字母和数字组成,除了越狱,没什么办法可以改变它获取方式[[
UIDevice
currentDevice
灯泡虫
·
2021-08-31 17:24
iOS 获取设备剩余空间、已使用空间、总空间的正确姿势(Swift + OC)
Swiftextension
UIDevice
{funcMBFormatter(_bytes:Int64)->String{letformatter=ByteCountFormatter()formatter.allowedUnits
Cingjin
·
2021-08-12 10:14
iOS iPhone12&其他机型适配
机型宏//判断是否是ipad#defineJH_isPad([[
UIDevice
currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPad)//
iOS_July
·
2021-06-27 10:16
远程通知(Remote Notification リモート・ノーティフィケーション使用上の注意)
注册:要区分iOS8分别使用不同的api://推送处理if([[[
UIDevice
currentDevice]systemVersion]floatValue]>=8.0){[[UIApplicationsharedApplication
shiyuwudi
·
2021-06-26 04:57
udid和uuid
[[
UIDevice
cuurrent]uniqueIdenfier],已被禁用。
扛支枪
·
2021-06-25 08:53
WKWebView 的清理缓存
oc://清理clearWKWebViewCache缓存-(void)clearCache{if([[[
UIDevice
currentDevice]systemVersion]intValue]>=9.0
某天天
·
2021-06-25 06:54
WKWebView 使用
import"JspWebViewController.h"import"LoginViewController.h"import"AppDelegate.h"import"IdleWindow.h"import"
UIDevice
枯竹流过岁月
·
2021-06-22 10:46
上一页
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
其他