
设备类型 屏幕控制
小手一背爱谁谁
这个作者很懒,什么都没留下…
展开
-
如何判断ios设备类型
功能函数: [cpp] view plaincopy-(bool)checkDevice:(NSString*)name { NSString* deviceType = [UIDevice currentDevice].model; NSLog(@"deviceType = %@", deviceTyp原创 2015-10-14 11:51:39 · 295 阅读 · 0 评论 -
屏幕旋转方向
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterface原创 2015-10-14 11:46:51 · 514 阅读 · 0 评论 -
iOS 判断设备是否锁屏
//判断锁屏#import #define NotificationLock CFSTR("com.apple.springboard.lockcomplete")#define NotificationChange CFSTR("com.apple.springboard.lockstate")#define NotificationPwdUI CFSTR原创 2016-10-25 17:21:20 · 2802 阅读 · 0 评论 -
iOS 2018新IPhone机型适配
#import <Foundation/Foundation.h>#import <UIKit/UIKit.h>NS_ASSUME_NONNULL_BEGIN/** 状态栏高度 */#define STATUS_BAR_HEIGHT [Helper status_ber_height]/** 导航栏高度 */#define NAVIGATION_B...原创 2018-11-23 18:16:23 · 1941 阅读 · 0 评论