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 推送小记
首先是程序里面注册推送的变化,ios8之后改了注册方法,用此方法注册if([[[
UIDevice
currentDevice]systemVersion]floatValue]>=8.0){[[UIApplicationshare
dashenju7973
·
2020-07-31 17:08
iOS开发之单例
UIApplication2>NSFileManager3>NSNotificationCenter4>NSUserDefaults5>NSURLSession6>UIScreen(应用程序窗口)7>[
UIDevice
currentDevice
KODIE
·
2020-07-31 15:04
iOS 【iOS 10之后tabBar顶部黑线如何去掉】
forKeyPath:@"_hidesShadow"];或者[self.tabBarsetShadowImage:[UIImagenew]];但在iOS10以后,上面两行代码无效,可执行:if([[[
UIDevice
currentDevice
王中尧
·
2020-07-31 11:20
iOS
iOS8的一些好玩的升级
NSProcessInfo-(BOOL)isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version;对于判断手机等设备的操作系统版本,相比于之前的[[
UIDevice
currentDevice
zzzzzdddddxxxxx
·
2020-07-30 23:25
iOS
UIDevice
Orientation与UIinterfaceOrientation以及屏幕旋转的方式
什么是设备方向,什么是视图方向首先需要明确两个概念,设备方向(
UIDevice
Orientation)和视图方向(UIInterfaceOrientation)
UIDevice
Orientation:不受锁定屏幕方向的影响
xiaobo_cocoa
·
2020-07-30 18:52
iOS
iOS判断当前设备旋转方向
UIDevice
Orientation是机器硬件的当前旋转方向这个你只能取值不能设置UIInterfaceOrientation是你程序界面的当前旋转方向这个可以设置
UIDevice
Orientationoriention
心若向阳_无谓悲伤
·
2020-07-30 17:17
iOS
iOS 强制转成横屏的方式
一直遇到这个问题,今天终于找到了解决方法.在我们的项目中经常遇到横竖屏切换,而又有某个特定的界面必须是特定的显示方式(横屏或竖屏).这就需要如下的处理了.强制转成横屏:if([[
UIDevice
currentDevice
nogodoss
·
2020-07-30 15:11
iphone
iOS中强制转某个页面为横屏,键盘也横屏
DeviceLandscape中的信息,要勾选这么几项,如下:2、设置强制横屏代码在viewDidLoad方法里面添加如下代码:-(void)viewDidLoad{[superviewDidLoad];if([[
UIDevice
currentDevice
iosWorker
·
2020-07-30 15:42
iOS
iOS 不同版本调用系统拨打电话使用不同的方法,避免调用卡顿甚至奔溃。
解决方法:代码如下-(void)kefu:(UIButton*)sender{NSString*phoneStr=@"tel://";NSString*str2=[[
UIDevice
currentDevice
Vanpoe
·
2020-07-30 14:41
移动开发
iOS
iOS 强制横屏
if([[
UIDevice
currentDevice]respondsToSelector:@selector(setOrientation:)]){SELselector=NSSelectorFromString
Black_House
·
2020-07-30 13:02
iOS
自动化黑盒测试UiAutomator-搭建环境
android.jaruiautomator.jar即可进行自动化黑盒测试的编写,如publicclassMyTestextendsUiAutomatorTestCase{publicvoidtestDemo{
UiDevice
.getInstance
陈大集
·
2020-07-30 07:48
android uiautomator学习(二)主要类的简单介绍
从别处泊来的一片短文,对初学uiautomator的人非常有帮助说明白了各个类的主要作用可用
UiDevice
表示设备get
UiDevice
().pressHome();UiSelector表示一个搜索条件以获取一个特定的组件
robinzhou
·
2020-07-30 00:29
webrtc iPhone横屏锁定屏幕本地摄像头显示不正常
image.png统一修改地方//注释掉设备监听通知//[[
UIDevice
currentDevice]beginGeneratingDevice
Crassus
·
2020-07-29 23:03
距离传感器,加速度传感器,以及
UIDevice
文件
//1.开启距离传感器(注意:默认情况距离传感器是关闭的)//只要开启之后,就开始实时监听[
UIDevice
currentDevice].proximityMonitoringEnab
阿洋12138
·
2020-07-29 17:06
iOS - 强制旋转屏幕之代码实现
//
UIDevice
+WJ.h@interface
UIDevice
(WJ)/***强制旋转设备*@param
WhoJun
·
2020-07-29 01:35
让UISearchBar支持空搜索
代码如下:NSArray*views=[[
UIDevice
currentDevice].systemVersionfloatValue]<7.0?
小码农_gjw
·
2020-07-28 21:15
记一笔UUID使用(二)
不是16个字节么,我还要UUID,哪有那么多UUID可以发啊.默默流泪~~2.不管他当当当
UIDevice
*device=[
UIDevice
currentDevice];NSString*deviceID
机器人小雪
·
2020-07-27 15:20
iOS keychain保存用户信息
现在的话我们可以通过[
UIDevice
currentDevice].identifierForVendor.UUIDString这个方法获取
phzean
·
2020-07-27 12:04
接近感应传感器使用
[[
UIDevice
currentDevice]setProximityMonitoringEnabled:YES];-(void)sensorStateChange:(NSNotificationCenter
iteye_9729
·
2020-07-16 00:38
iphone
Android自动化测试之 Uiautomator-
UiDevice
-API
UIdevice
提供关于设备的状态信息。你也可以使用这个类来模拟装置上的用户的行为,如按方向键或按菜单按钮。
whorus1
·
2020-07-15 09:46
android
UIautomate
iOS -
UIDevice
前言NS_CLASS_AVAILABLE_IOS(2_0)@interface
UIDevice
:NSObject@available(iOS2.0,*)publicclass
UIDevice
:NSObjectiOS
fqerfcqewfd
·
2020-07-15 07:36
1.
UiDevice
API 详细介绍
1.
UiDevice
按键与keycode使用返回值方法名说明booleanpressBack()模拟短按返回back键booleanpressDPadCenter()模拟按轨迹球中点按键booleanpressSPadDown
weixin_30590285
·
2020-07-15 03:21
iOS-
UIDevice
继承:NSObjectFramework:在UIkitiOS2.0和之后
UIDevice
类提供了一个单例实例代表当前的设备。从这个单例中可以获取设备名称、设备模型和操作系统名称和版本等设备信息。
ZZB博客
·
2020-07-15 01:07
iOS
UIDevice
UIDevice
UIDevice
类的单例描述了当前设备的一些设备信息,如设备名称、设备类型、系统名及版本号、电池状态、进近传感器状态、设备姿态等信息。可以通过注册如下通知,来获取相关变化。
那夜的星空分外清澈
·
2020-07-15 00:37
iOS
iOS TouchID和FaceID登录验证 简单使用
相关技术知识点查找资料后简单了解并实现功能先来点直观的图指纹识别和面部识别公用一个库即可,系统会自动判断当前设备支持指纹识别还是面部识别1.导入框架#import2.判断当前手机是否支持指纹解锁或者人脸识别功能if([
UIDevice
currentDevice
I'm the Lemon's辣妈程序媛
·
2020-07-15 00:45
程序媛->辣妈->程序媛+辣妈
iOS 10适配
1.系统判断方法失效在你的项目中,当需要判断系统版本的话,不要使用下面的方法:#defineisiOS10([[[[
UIDevice
currentDevice]systemVersion]substringToIndex
咸鱼我蛋
·
2020-07-14 20:42
Android UI 自动化测试之
UiDevice
UiDevice
介绍
UiDevice
代表设备状态,为单例模式具体功能:(1)获取设备信息,屏幕分辨率,旋转状态,亮灭屏状态等(2)操作:按键,坐标操作,滑动,拖拽,灭屏唤醒屏幕,截图等(3)监听器功能/
Chen_xiao_chen
·
2020-07-14 18:29
测试
iOS 近距离传感器的使用
使用使用近距离传感器
UIDevice
中有两个近距离传感器的属性:proximityMonitoringEnabled和proximityState。这两个属性都是iOS3.0及以上才支持的。
牛小牛很牛
·
2020-07-14 17:36
判断设备的类型ipad或者iphone,调用自带应用,禁止锁屏,设置icon上的数字
#defineIS_IPAD([[
UIDevice
currentDevice]respondsToSelector:@selector(userInterfaceIdiom)]&&[[
UIDevice
currentDevice
Men-DD
·
2020-07-14 15:22
object-c
ios
添加渐变色
SHPlot*)plot中给他的backgroundLayer添加如下代码声明一个layer为他的backGroundLayer命名为backlayerUIColor*colorFill;if([[[
UIDevice
currentDevice
胖红Red
·
2020-07-14 12:44
UIDevice
,设备信息
1.判断是否是横向屏:BOOLb=
UIDevice
OrientationIsLandscape([
UIDevice
currentDevice].orientation);获取设备uniqueIdentifier
andyweike
·
2020-07-14 07:04
ios
AFN 3.0 POST请求适配 iOS 7.0问题
一直使用的AFN,在iOS8.0和9.0都没有问题,就在iOS7.0的系统总是出现404错误,缺少Content-Lenght请求头参数,查阅了一圈资料没有找到好的解决办法,只好自己来写,直接上代码if([
UIDevice
currentDevice
runningLigg
·
2020-07-14 07:29
UiDevice
API
一、
UiDevice
介绍1.
UiDevice
代表设备状态,为单例模式。
leeyushi
·
2020-07-14 06:26
iOS 8.0 以后的版本使用CLLocationManager定位问题
判断是否授权的代码如下:if([[
UIDevice
alloc].systemVersionintegerValue]>8.0){if([CLLocationManagerauthorizationStatus
_lijinglong
·
2020-07-14 05:05
iOS 中 有意思的事情
判断系统的版本代码://系统版本大于~~#defineSYSTEM_VERSION_GREATER_THAN_TO(v)([[[
UIDevice
currentDevice]systemVersion]compare
语歌
·
2020-07-14 05:05
UIDevice
的一些实用的Category
需要导入SystemConfiguration,CoreFoundation.头文件#import#import@interface
UIDevice
(Utils)//是否是平板+(bool)isPad;
__承_影__
·
2020-07-14 03:03
iOS
iOS获取通知状态并跳转设置界面设置
获取用户通知中心对程序消息通知的设置,是否开启消息通知if([[
UIDevice
currentDevice].systemVersionfloatValue]>=8.0f){UIUserNotificationSettings
西门丨不吹雪
·
2020-07-14 03:48
扩展
UIDevice
来监测网络连接
《TheiPhoneDeveloper'sCookbook》没什么好说的,直接上代码:1、
UIDevice
+Reachability.h:#import@interface
UIDevice
(Reachability
iteye_2768
·
2020-07-14 01:14
Objective-C
iOS
监听UINavigationController 滑动返回手势
animated{[superviewWillAppear:animated];[self.navigationController.navigationBarsetHidden:YES];if([[[
UIDevice
currentDevice
老飞侠o
·
2020-07-14 00:34
UITableView滚动到最后一行跳动问题
1.滚动到最后一行-(void)scrollToBottom{if([
UIDevice
isIphone6]||[
UIDevice
isIphone6p]){if(self.fpmModel.responseData.count
慭慭流觞
·
2020-07-13 21:09
iPad横竖屏切换中的注意点
设备方向问题设备方向不能够直接读取[
UIDevice
currentDevice]的方向,因为device的方向
移动开发_ziank
·
2020-07-13 20:56
iOS在更改用户头像并保存至本地沙盒目录中对于UIImagePickerController、UIAlertController的使用方法
感谢总结的方法.h#import//获取系统版本号#defineIS_iOS8([[[
UIDevice
currentDevice]systemVersion]floatValue]>=8.0?
zcaaron
·
2020-07-13 19:47
收集iOS--
UIDevice
的常用属性
//**************************************************
UIDevice
提供了一个单粒对象,代表当前设备,通过它可以获得一些设备相关的信息,比如电池电量值
TenMios
·
2020-07-13 19:12
适配iPhoneX 判断是否为iPhoneX
iPhoneX分辨率812ptx375pt(@3x)iphonex-screensizeSwift代码判断extension
UIDevice
{publicfuncisX()->Bool{ifUIScreen.main.bounds.height
键盘仔
·
2020-07-13 08:37
ios10 适配问题总结
原文链接:http://www.cnblogs.com/huoran1120/p/5903089.html看各个大神整理而成1、检查版本问题不可以像下面这样用#defineisiOS10([[[[
UIDevice
currentDevice
LinXunFeng
·
2020-07-13 07:03
iOS开发
IOS9之后,webview请求网页变慢
2.设备版本判断:[[
UIDevice
currentDevice]systemVersion]3.如果要调用起js的方法,uiwebview和wkwebview是有区别的:uiwebv
Oh_EnGirl
·
2020-07-13 04:38
跳转AppStore评论
直接代码if([[[
UIDevice
currentDevice]systemVersion]floatValue]>=7.0){NSString*str=[NSStringstringWithFormat
雪中客
·
2020-07-13 01:30
指纹识别
iphone5s以后推出指纹识别iOS8.0开放指纹识别引入系统头文件#import1.判断版本//1.判断版本if([
UIDevice
currentDevice].systemVersion.floatValue
锦鲤跃龙
·
2020-07-12 23:38
iOS读取通讯录
iOS读取通讯录中的各种信息//读取所有联系人-(void)ReadAllPeoples{//取得本地通信录名柄ABAddressBookReftmpAddressBook=nil;if([[
UIDevice
currentDevice
hext123
·
2020-07-12 20:39
iOS获取设备信息与应用信息
图片来源于网络iOS获取设备信息在iOS开发过程中,有时我们想获取到设备的系统信息,这时就需要使用到
UIDevice
类,具体常用信息获取方式如下:获取设备唯一标识,同一个开发商的APP获取到的标识是相同的
蚊香酱
·
2020-07-12 19:41
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
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
其他