2016年1月25日

判断手机分辨率和系统版本号

摘要: #define isiPhone3 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] curre... 阅读全文

posted @ 2016-01-25 17:50 丿轻轻闲影 阅读(170) 评论(0) 推荐(0) 编辑

判断手机号码格式是否正确

摘要: //正则判断手机号码格式+ (BOOL)validatePhone:(NSString *)phone{/*** 手机号码* 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188* 联通:130,131,132,152,155... 阅读全文

posted @ 2016-01-25 17:47 丿轻轻闲影 阅读(1119) 评论(0) 推荐(0) 编辑

获取当前显示的ViewController

摘要: //获取当前屏幕显示的viewcontroller - (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] ... 阅读全文

posted @ 2016-01-25 17:37 丿轻轻闲影 阅读(198) 评论(0) 推荐(0) 编辑

导航