摘要: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNoti 阅读全文
posted @ 2016-06-21 17:13 阳光普照大地 阅读(239) 评论(0) 推荐(0) 编辑
摘要: // 网络中文乱码问题 utf-8 [string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 阅读全文
posted @ 2016-06-21 15:33 阳光普照大地 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"186xxxx6979"];[[UIApplication sha 阅读全文
posted @ 2016-05-26 15:08 阳光普照大地 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 如果是用UINavigationController来组织页面结构的话可以使用: 如果是用UITabBarController来组织页面结构的话: 阅读全文
posted @ 2016-05-21 10:01 阳光普照大地 阅读(610) 评论(0) 推荐(0) 编辑
摘要: self.issignup == nil || [self.issignup isEqual:[NSNull null]] (null) || <null> 阅读全文
posted @ 2016-05-18 18:55 阳光普照大地 阅读(96) 评论(0) 推荐(0) 编辑
摘要: NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init]; [inputFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]]; @"e 阅读全文
posted @ 2016-05-18 17:53 阳光普照大地 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 首先是要用到的几个类 @property (strong,nonatomic)AVCaptureDevice * device; @property (strong,nonatomic)AVCaptureDeviceInput * input; @property (strong,nonatomic 阅读全文
posted @ 2016-05-18 16:18 阳光普照大地 阅读(776) 评论(0) 推荐(0) 编辑
摘要: IOS 开发,调用打电话,发短信,打开网址 1、调用 自带mail [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com"]]; 2、调用 电话phone [[UIAppl 阅读全文
posted @ 2016-05-17 17:37 阳光普照大地 阅读(185) 评论(0) 推荐(0) 编辑
摘要: + (NSString *)typeForImageData:(NSData *)data { uint8_t c; [data getBytes:&c length:1]; switch (c) { case 0xFF: return @"image/jpeg"; case 0x89: retur 阅读全文
posted @ 2016-05-17 15:08 阳光普照大地 阅读(422) 评论(0) 推荐(0) 编辑
摘要: UIDatePicker *datePicker = [[UIDatePicker alloc]init]; datePicker.datePickerMode = UIDatePickerModeDate; datePicker.locale = [[NSLocale alloc]initWith 阅读全文
posted @ 2016-05-16 15:14 阳光普照大地 阅读(351) 评论(0) 推荐(0) 编辑