240 发简信
IP属地:山东
  • 3D Touch 的实现

    1、在didFinishLaunchingWithOptions:添加以下代码 UIApplicationShortcutItem *short...

  • 保存图片到系统相册

    - (void)saveImageToPhotos:(UIImage*)savedImage { UIImageWriteToSavedPhot...

  • 将本地项目导入到码云

    1、cd到文件目录下 2、文件中有Git文件 需要移除 命令:rm -rf .git 3、git init 4、git add . 5、git ...

  • git 创建分支 合并分支(xcode上的操作)

    1/左边管理栏第二栏选择branchfrom“主干名字”:为这个主干创建分支 2/切换当前分支:选中当前分支,右键选择checkout 3/在分...

  • 百度坐标转换为高德坐标进行导航

    + (CLLocationCoordinate2D)bd09Decrypt:(double)bdLat bdLon:(double)bdLon ...

  • 矩形

    CGContextSetFillColorWithColor(context, [UIColor blueColor].CGColor);//填...

  • 直线

    CGPoint aPoints[3];//坐标点 aPoints[0] = CGPointMake(100, 80);//坐标1 aPoints...

  • 画圆

    //context就相当于是画布 CGContextRef context = UIGraphicsGetCurrentContext(); /...

  • 网络请求图片,根据范围取图

    CGImageRef temImg = image.CGImage; float width = CGImageGetWidth(temImg)...