自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 从当前带导航的控制器返回到前面的某个控制器

[self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:2] animated:YES];

2016-04-28 14:27:06 259

转载 验证手机号是否正确

-(BOOL)checkPhoneNumInput:(NSString *)title{        NSString * MOBILE =@"^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$";        NSString * CM =@"^1(34[0-8]|(3[5-9]|5[017-9]|8[278])\\d)\\d{7

2016-04-28 11:22:12 546

原创 验证车牌号是否正确

//车牌号验证-(BOOL)validateCarNo:(NSString* )carNo{    NSString *carRegex =@"^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$";    NSPredicate *carTest = [NSPredicatepredicateWithFormat:@"SELF

2016-04-25 16:44:31 1511

原创 代码写时间选择器

UIDatePicker *picker = [[UIDatePickeralloc]initWithFrame:CGRectMake(0,50, calu.width, calu.height -50)];    [calu addSubview:picker];    picker.locale = [[NSLocalealloc] initWithLocale

2016-04-13 16:05:13 352

原创 真机测试时报 You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated li

点击项目的Build Settings 查找bitcode  找到Enable Bitcode 设为NO ,就好了

2016-04-12 09:47:42 374

原创 时间戳和字符串相互转换,获取当前正确的时间

时间戳转换字符串            NSString *str=[NSStringstringWithFormat:@"%@",self.model.insuranceValidityDate];//时间戳            NSTimeInterval time=[str doubleValue]+28800;//因为时差问题要加8小时 == 28800

2016-04-11 15:06:15 853

转载 获取APP的相关信息

NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];   CFShow(infoDictionary);  // app名称   NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];   // app

2016-04-08 09:40:00 520

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除