自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (4)
  • 收藏
  • 关注

原创 Swift项目真机调试报错dyld: Library not loaded: @rpath/libswiftCore.dylib

解决问题的网址:stackoverflow 使用Xcode7.3 真机运行 swift 项目的时候报错: dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/containers/Bundle/Application/xxx/abc.app/abc Reason: no suitable

2016-06-08 09:37:00 2234

原创 iOS Plus屏幕 AlerController报错

使用UIAlertController 在6P/6sP屏幕时报错 2016-06-02 10:03:27.023 app[1581:584039] the behavior of the UICollectionViewFlowLayout is not defined because: 2016-06-02 10:03:27.023 app[1581:584039] the item heig

2016-06-02 10:40:01 542

JHUIImagePickerControllerForiOS

封装UIImagePickerController For iOS

2016-06-14

EasyUIImagePickerController

EasyUIImagePickerController for Swift GitHub:https://github.com/JonHory/JHUIImagePickerController 1.声明 var imagePickerController:JHImagePickerController? 2.初始化 //初始化方法一 // imagePickerController = JHImagePickerController() //初始化方法一的补充设置(若需要缓存时才设置) //设置是否缓存(默认为false) // imagePickerController?.isCaches = true //设置缓存id(当需要缓存时才设置) // imagePickerController?.identifier = "xx" //初始化方法二 imagePickerController = JHImagePickerController(isCaches: true, identifier: "abc") 3.设置代理 JHImagePickerControllerDelegate imagePickerController?.delegate = self 4. 选取图片来自相册 注意使用[weak self] 防止强引用 self.imagePickerController?.selectImageFromAlbumSuccess({[weak self] (imagePickerController) in if let strongSelf = self { strongSelf.presentViewController(imagePickerController, animated: true, completion: nil) } }, Fail: { //SVProgressHUD.showErrorWithStatus("无法获取照片权限") }) 选取图片来自相机 注意使用[weak self] 防止强引用 self.imagePickerController?.selectImageFromCameraSuccess({[weak self](imagePickerController) in if let strongSelf = self { strongSelf.presentViewController(imagePickerController, animated: true, completion: nil) } }, Fail: { //SVProgressHUD.showErrorWithStatus("无法获取相机权限") }) 5. 当未设置缓存或缓存identifier为空时返回该方法 func selectImageFinished(image: UIImage) { imageView.image = image self.dismissViewControllerAnimated(true, completion: nil) } 当设置了缓存,且输入缓存identifier时返回该方法(未设置缓存时可以不实现) func selectImageFinishedAndCaches(image: UIImage, cachesIdentifier: String, isCachesSuccess: Bool) { if isCachesSuccess == true { imageView.image = image } self.dismissViewControllerAnimated(true, completion: nil) } 6.根据identifier读取缓存图片(若读取失败,默认返回的image?.accessibilityIdentifier == "jhSurprise.jpg") let image = self.imagePickerController?.readImageFromCaches("abc") if image?.accessibilityIdentifier != "jhSurprise.jpg" { imageView.image = image }else { print("读取缓存照片失败,请检查图片identifier是否存在") imageView.image = image } 7.删除指定identifier的缓存图片(删除id:abc) self.imagePickerController?.removeCachesPictureForIdentifier("abc") 删除全部缓存图片 if self.imagePickerController?.removeCachesPictures() == true { print("删除全部缓存图片成功") }

2016-06-13

iOS工具类封装

获取字符串文字的长度 获取字符串文字的高度 获取今天的日期:年月日 邮箱/手机号码验证等

2015-10-29

iOS多级列表demo

本demo实现了类似qq列表,但能自行扩展的多级列表(demo中实现了4级列表)。满足每次点击cell才发起网络请求获取数据的思路(demo中在每次点击cell的时候创建并加载了更多的model)。满足自定义各级cell。

2015-10-21

空空如也

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

TA关注的人

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