自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 把“\\”转换成“/”

//把“\\”转换成“/” if ([self.iconUrlStr rangeOfString:@"\\"].location != NSNotFound) { self.iconUrlStr = [self.iconUrlStr stringByReplacin...

2016-06-16 17:57:00 632

转载 View画边框

//View画边框 self.teleView.layer.borderWidth = 2; self.teleView.layer.borderColor = [[UIColor colorWithRed:239.0/255.0 green:207.0/255.0 blue:145.0/...

2016-06-16 17:32:00 85

转载 相机相册跳转

-(void)goCameraVC{ self.pickerVC = [[UIImagePickerController alloc]init]; self.pickerVC.sourceType =UIImagePickerControllerSourceTy...

2016-06-16 17:28:00 124

转载 判断系统定位是否开启,判断是否开启相机访问 ,判断是否开启相册访问

/** 判断系统定位是否开启 */ -(BOOL)checkIsLocationServiceEnabled { //判断定位服务是否可用 if ([CLLocationManager locationServicesEnabled] && ...

2016-06-16 17:26:00 148

转载 图片指定宽度按比例缩放

//指定宽度按比例缩放 -(UIImage *) imageCompressForWidth:(UIImage *)sourceImage targetWidth:(CGFloat)defineWidth{ UIImage *newImage = nil; CGSize ...

2016-06-16 17:17:00 269

转载 横线平移动画

#pragma mark-------横线平移动画------------ -(void)touchesBeganMove:(UIImageView*)imgView{ //1.创建核心动画 CAKeyframeAnimation *keyAnima=[CAKeyf...

2016-06-16 17:16:00 89

转载 naviBar的颜色

//naviBar的颜色,防止7.0等较低版本闪退 self.navigationController.navigationBar.translucent = NO; [self.navigationController.navigationBar setBarTintCo...

2016-06-16 17:14:00 124

转载 设置状态栏字体颜色为白色

//设置状态栏字体颜色为白色 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO]; ...

2016-06-16 17:12:00 608

转载 去除tableView的header的粘性

#pragma mark =----------------去除tableView的header的粘性---------------------------- - (void)scrollViewDidScroll:(UIScrollView *)scrollView { ...

2016-06-16 17:09:00 65

转载 取消scrollview的自动像素下移,取消navigationbar导致的view层自动下移

//取消scrollview的自动像素下移 self.automaticallyAdjustsScrollViewInsets = NO; //取消navigationbar导致的view层自动下移 self.extendedLayoutInclude...

2016-06-15 17:10:00 94

转载 iOS显示HTML

进入H5: 方法一:文件在本地 NSString *resourcePath = [[NSBundle mainBundle] resourcePath]; NSString *filePath =[resourcePath stringByAppendingPathCompon...

2016-06-15 16:57:00 72

转载 百度地图CityID获取

//离线地图:用来获取百度地图的cityID,使用完毕后要关掉,否则影响在线地图的显示 @property (nonatomic,strong) BMKOfflineMap* offlineMap; -(BMKOfflineMap *)offlineMap{ if (_offli...

2016-06-15 16:53:00 1407

空空如也

空空如也

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

TA关注的人

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