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
IPC
#import"HWSkipSystemSettingManager.h"#defineSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)([[[
UIDevice
currentDevice
夜雨聲煩_
·
2020-07-01 14:21
苹果客服电话
devforums.apple.com/thread/239351https://devforums.apple.com/message/1063293#1063293NSLog(@"设备ID:%@",[[
UIDevice
currentDevice
William_ye
·
2020-07-01 05:36
iOS 强制横竖屏
强制横屏NSNumber*resetOrientationTarget=[NSNumbernumberWithInt:UIInterfaceOrientationUnknown];[[
UIDevice
currentDevice
旅途开发者
·
2020-06-30 21:37
iOS 获取是否安装了某个App
*必要条件:需要知道这个App的bundleId-(BOOL)isHadCompleteWithBundleId:(NSString*)bundleId{if([[
UIDevice
currentDevice
rockyMJ
·
2020-06-30 15:48
1.3UIApplication常用操作
设置应用程序图标上面红色的数字//在iOS8.0以后要使用UIApplication给应用程序设置图标数字时,要注册一个系统通知UIUserNotificationTypeBadge就可以设置应用程序图标上面的数字if([[[
UIDevice
currentDevice
刘2傻
·
2020-06-30 15:39
二维码扫描加入手电筒的原生写法
#import"WMQRCodeViewController.h"#import"SVProgressHUD.h"#definekDeviceVersion[[
UIDevice
currentDevice
高乔人
·
2020-06-30 08:22
iOS开发:判断iPhone是否是刘海屏iPhoneX、iPhoneXR、iPhoneXs、iPhoneXs Max等
JIJI方法一Objective-C//iPhoneX、iPhoneXR、iPhoneXs、iPhoneXsMax等//判断刘海屏,返回YES表示是刘海屏-(BOOL)isNotchScreen{if([
UIDevice
currentDevice
Harvey66
·
2020-06-30 06:04
iOS
开发
Android UIAutomator浅谈
AndroidUIAutomator浅谈AndroidUIAutomator浅谈简介准备UI元素查找访问UI控件指定一个选择器执行动作集合操作操作可以滚动的UI元素校验结果Api
UiDevice
UiObject
流水不腐小夏
·
2020-06-29 23:56
测试
IOS疯狂基础之屏幕旋转控制,获得当前方向
self.interfaceOrientation或[[UIApplicationsharedApplication]statusBarOrientation]if(self.interfaceOrientation==
UIDevice
OrientationLandscapeRight
无敌猪KK
·
2020-06-29 21:54
IOS
天天品尝iOS7甜点 Day9:Device Identification
参考GitHub源码:shinobicontrols/iOS7-day-by-day天天品尝iOS7甜点::Day9::DeviceIdentificationVendorIdentification
UIDevice
独木舟的木
·
2020-06-29 11:12
获取iphone手机相关信息
导入#importNSString*strName=[[
UIDevice
currentDevice]name];NSLog(@"设备名称:%@",strName);//e.g."
爱代码不爱bug
·
2020-06-28 22:53
iOS 横竖屏强制转换
强制转成横屏://如果要上传AppStore请慎用,不知道是否能够通过,未尝试if([[
UIDevice
currentDevice]respondsToSelector:@selector(setOrientation
山杨
·
2020-06-28 21:25
coreLocation位置定位
CLLocationManageralloc]init];//设置定位精确度lM.desiredAccuracy=kCLLocationAccuracyBest;lM.delegate=self;//ios8适配if([[
UIDevice
currentDevic
陈水寒
·
2020-06-28 19:48
7.UIDecive
UIDevice
类展示了一些关键的特定于设备的属性,包括使用的iPhone,Ipad或iPodTouch型号、设备名称、以及OS名称和版本。他是一种一站式解决方案,用于提取出某些系统详细信息。
二斤寂寞
·
2020-06-28 19:09
Swift中配置极光推送
如下代码importUIKit//iOS系统版本号判断letiOS_Version:Float=Float.init(
UIDevice
.current.systemVersion)!
ZYiDa
·
2020-06-28 18:38
iOS常见错误9-UITableView,UIScrollView,UICollectionView偏移20像素
我们可以判断一下系统再进行设置if([[
UIDevice
currentDevice]systemVersion].floatValue>=7.0){self.automaticallyAdjustsScrollView
想要飞翔的企鹅
·
2020-06-28 15:54
iPhone X系列 的获取 - 安全区顶部和底部高度
AppDelegate{returnapp.window}returnnil}}//2.iPhoneX系列variphoneX_Series:Bool{get{if
UIDevice
.current.userInterfaceIdiom
weixin_33889665
·
2020-06-28 07:55
IOS选择跳转导航地图,未安装跳到AppStore
#defineSYSTEM_VERSION_LESS_THAN(v)([[[
UIDevice
currentDevice]systemVersion]compare:voptions:NSNumericSearch
蜗牛1992
·
2020-06-28 02:30
iOS在某个页面横屏显示 跳转系统设置
BOOL)animated{[superviewWillAppear:animated];self.navigationController.navigationBar.hidden=NO;if([[
UIDevice
currentDevice
轻斟浅醉17
·
2020-06-28 00:40
iOS10 系统版本检测
/**SystemVersioningPreprocessorMacros*/#defineSYSTEM_VERSION_EQUAL_TO(v)([[[
UIDevice
currentDevice]systemVersion
Nicole__Zhang
·
2020-06-27 21:36
tableview的一些细节--separatorInset
separatorInset属性:1.手写代码控制:self.tableView.separatorInset=UIEdgeInsetsMake(0,0,0,0);注:在iOS7之前没有这个设置,需要判断下:if([[[
UIDevice
currentDevice
Nathania
·
2020-06-27 13:18
TV测试中的按键长按操作模拟
UiAutomator在API中也提供了模拟发送KeyCode的方法,即
UiDevice
类中的pressKeyCode方法。但
UDLD
·
2020-06-27 09:46
iOS | 小笔记:常用宏定义
手机系统#defineIS_PAD(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad)#defineIS_IOS7([[[
UIDevice
currentDevice
佳小豆
·
2020-06-27 08:50
Swift - 判断设备方向(或监听设备方向的改变)
原文出自:www.hangge.com转载请保留原文链接:http://www.hangge.com/blog/cache/detail_781.html通过
UIDevice
.currentDevice
沈成才
·
2020-06-27 08:01
API更新:iOS-7
1.已禁用-[
UIDevice
uniqueIdentifier]苹果总是把用户的隐私看的很重要。
李炯7115
·
2020-06-27 07:34
重点 (二十六) : 硬件/换肤
一.硬件信息的获取应用场景例如QQ空间APP发说说时,出现的什么什么型号的手机;迅雷APP下载文件时提示剩余空间,已用空间实现方案直接通过第三方工具类(
UIDevice
的分类),进行获取对应信息原因:自己写起来比较复杂
JonesCxy
·
2020-06-27 06:51
关于swift集成shareSDK 第三方登录崩溃
错误1:+[
UIDevice
wbsdk_plainDeviceID]:unrecognizedselectorsenttoclass0x1063d错误2:-[__NSArrayMenqueue:]:unrecognizedselectorsenttoinstance0x60800024dd10
cw0925
·
2020-06-27 04:25
APP端后台接收消息处理并推送
MARK:-用户通知(推送)_自定义方法/**注册用户通知(推送)*/funcregisterUserNotification(application:UIApplication){letresult=
UIDevice
.c
昵称可以修改么
·
2020-06-27 02:23
心得体会
UDID 与 UUID
UUID是通用唯一标识符,是32位十六进制字符串,可以通过代码获取:NSUUID*uuid=[
UIDevice
currentDevice].identif
进击的小恶魔
·
2020-06-27 00:33
Swift监听屏幕旋转
NSNotificationCenter.defaultCenter().addObserver(self,selector:"receiverNotification",name:
UIDevice
OrientationDidChangeNotification
树下有雨
·
2020-06-26 20:10
Swift
监听电池电量
电池电量//需要开启电量监听默认为nomyDevice.batteryMonitoringEnabled=YES;//huoqu电池的状态switch(myDevice.batteryState){case
UIDevice
BatteryStateUnknown
路这么长
·
2020-06-26 20:37
iOS获取当前设备的型号、分辨率、运营商以及地理位置
这些信息其实获取也都不是很难,简单记录一下://首先获取当前设备对象
UIDevice
*device=[
UIDevice
currentDevice];/*系统名*/NSString*systemName=
知更鸟Coollee
·
2020-06-26 15:49
ios开发
uiautomator 2.0 长按keycode物理按键
private
UiDevice
mDevice;//长按物理键publicbooleanlongPressKeyCode(intkeyCode,intPressTime){try{FieldmUiAutomationBridge
sinat_29052561
·
2020-06-26 11:45
Uiautomator
2.0
Java+Uiautomator自动化测试 -- 8.
UiDevice
学习(按键,坐标操作,滑动,拖动,唤醒,截图,亮屏,灭屏等)
类介绍
UiDevice
s代表设备状态是单例模式
UIDevice
s功能获取设备信息:屏幕分辨率,旋转状态,亮屏或者灭屏等操作操作:按键,坐标操作,滑动,拖动,唤醒,截图等监听器源码的介绍:/***
UiDevice
providesaccesstostateinformationaboutthedevice
Ricky_Frog
·
2020-06-26 05:50
iOS 10 UserNotifications Kit
#defineXCODE_VERSION_GREATER_THAN_OR_EQUAL_TO_8__has_include()#defineSYSTEM_VERSION_EQUAL_TO(v)([[[
UIDevice
currentDevice
XLsn0w
·
2020-06-25 17:38
TextView滚动至最后一行 跳动的bug解决
//ios7bugfix//checkifthedeviceisrunningiOS7.0orlaterNSString*reqSysVer=@"7.0";NSString*currSysVer=[[
UIDevice
currentDevice
weirdyu
·
2020-06-25 16:27
本地推送的应用
里面注册本地通知代码如下/***注册通知*/-(void)registerLocalNotification:(UIApplication*)application{//注意:在iOS8中,必须提前注册通知类型if([
UIDevice
currentDevice
jianshu小赵
·
2020-06-25 06:12
iOS磨砂(半透明)效果实现
//判断系统版本是否支持8.0UIView*blurEffectView;if([[[
UIDevice
currentDevice]systemVersion]floatValue]>=8.0){/
wzf_taker
·
2020-06-25 01:30
iOS开发--通讯录操作
AddressBook.framework库然后配置plist文件,添加Privacy-ContactsUsageDescription和描述.h文件代码#import#import#import#defineIS_iOS8[[
UIDevice
currentDevice
沉默的鱼sunny
·
2020-06-24 20:33
iOS向对象发送消息之NSInvocation
NSSelectorFromString(@"setOrientation:");2.使用创建好的方法选择器获取一个NSMethodSignature类型的对象方法的签名NSMethodSignature*methodSig=[
UIDevice
instanceMetho
随笔点滴
·
2020-06-24 19:51
iOS 判断手机型号
1.手机系统版本:9.1NSString*phoneVersion=[[
UIDevice
currentDevice]systemVersion];2.手机类型:iPhone6NSString*phoneModel
江河_ios
·
2020-06-24 11:12
常用IOS的宏定义
1.首次启动判断:#defineFirst_Launched@"firstLaunch"2.ios7系统判断:#defineIsIOS7([[[
UIDevice
currentDevice]systemVersion
sujeking
·
2020-06-24 10:01
UIDevice
获取设备名[
UIDevice
currentDevice].name,获取系统版本号[[
UIDevice
currentDevice].systemVersiondoubleValue];iOS10之后#defineIOS_VERSION
奔跑的_猿
·
2020-06-24 08:04
iOS小知识点10(获取手机横竖屏状态的几种方式)
项目需求需要知道手机当前是竖屏还是横屏状态,于是谷歌了一下,归纳如下:方式一:注册手机方向改变的通知
UIDevice
OrientationDidChangeNotification-(void)viewDidLoad
丨n水瓶座菜虫灬
·
2020-06-24 05:25
iOS导航BarButtonItem文字或者图片与屏幕边界的间隔调整方法
UIButton*)button{UIBarButtonItem*buttonItem=[[UIBarButtonItemalloc]initWithCustomView:button];if([[[[
UIDevice
currentDevice
白屏
·
2020-06-24 03:15
iOS 编程:设备方向和界面方向
typedefenum
UIDevice
Orientation:NSInteger{
UIDevice
OrientationUnknown,//未知方向
UIDevice
OrientationPortrait
独木舟的木
·
2020-06-23 19:18
iOS 获取手机机型颜色 笔记
-(void)jh_deviceColor{
UIDevice
*device=[
UIDevice
currentDevice];SELselector=NSSelectorFromString(@"deviceInfoForKey
豪冷
·
2020-06-23 18:51
【Android】UI测试:UIAutomator & Espresso
提供5个基本工具类,用于操作测试流程:com.android.uiautomator.core.UiCollection;com.android.uiautomator.core.
UiDevice
;com.android.uiautomator.core.UiObject
Wavky
·
2020-06-23 11:51
iOS获取手机上软件的一些信息
NSBundlemainBundle]objectForInfoDictionaryKey:@"CFBundleShortVersionString"];//手机序列号NSString*identifierNumber=[[
UIDevice
currentDevice
青欢
·
2020-06-23 03:41
iOS开发
uiautomator模拟短按和长按物理按键
非物理按键的有:home键、菜单键、Back键(返回键)一般常用的方法有:get
UiDevice
().pressHome();//home键
享有盛誉之名
·
2020-06-22 17:11
uiautomator
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
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
其他