/** * 判断 当前设备 系统版本 是否大于等于 8 */ if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8) { }
分类:
其他好文 时间:
2016-02-29 14:35:09
阅读次数:
162
放在index.html文件中 或 header.html
分类:
移动开发 时间:
2015-12-29 15:51:42
阅读次数:
366
#pragma mark 判断当前设备#define IS_IPHONE4 (([[UIScreen mainScreen] bounds].size.height == 480) ? YES : NO)#define IS_IPHONE5 (([[UIScreen mainScreen] boun...
分类:
其他好文 时间:
2015-12-26 01:14:04
阅读次数:
215
拨打电话跳转至拨号界面发送短信唤醒屏幕并解锁判断当前App处于前台还是后台状态判断当前手机是否处于锁屏睡眠状态判断当前是否有网络连接判断当前是否是WIFI连接状态安装APK判断当前设备是否为手机获取当前设备宽高单位px获取当前设备的IMEI需要与上面的isPhone一起使用获取当前设备的MAC地址获...
分类:
移动开发 时间:
2015-12-09 19:15:23
阅读次数:
222
代码如下:+ (NSString*) deviceString{ //需要#import "sys/utsname.h" structutsnamesystemInfo; uname(&systemInfo); NSString*deviceString = [NSStringstringWith....
分类:
移动开发 时间:
2015-09-04 11:00:25
阅读次数:
127
该文章中的代码可以用来在swift 中判断当前设备的相机是否可用
分类:
移动开发 时间:
2015-05-29 13:41:10
阅读次数:
128
publicclassNetUtil{
publicstaticfinalintNETWORN_NONE=0;//无网络
publicstaticfinalintNETWORN_WIFI=1;//wife
publicstaticfinalintNETWORN_MOBILE=2;//手机
/**
*获取当前网络的状态
*@paramcontext
*@return
*/
publicstaticintgetNetworkState(Contextcontext){
Connect..
分类:
移动开发 时间:
2015-04-25 00:22:34
阅读次数:
173
加入权限设置//判断当前设备是否是模拟器。如果返回TRUE,则当前是模拟器,不是返回FALSE private static boolean isEmulator(Context context){ try{ TelephonyManager tm = (T...
分类:
移动开发 时间:
2015-03-11 16:48:24
阅读次数:
213
var system={ userAgent:navigator.userAgent.toLowerCase(), name:function() { var bIsIpad = this.userAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = t...
分类:
移动开发 时间:
2015-03-02 16:40:23
阅读次数:
174
CLLocationManager还提供了如下类方法来判断当前设备的定位相关服务状态。Ø+ locationServicesEnabled:返回当前定位服务是否可用。Ø+ deferredLocationUpdatesAvailable:返回延迟定位更新是否可用。Ø+ significantLoca...
分类:
移动开发 时间:
2015-01-23 12:42:37
阅读次数:
231