dkahgld

UIImagePickerController+ST.h 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // UIImagePickerController+ST.h
  3. // STPhotoKit
  4. //
  5. // Created by 沈兆良 on 16/2/26.
  6. // Copyright © 2016年 沈兆良. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIImagePickerController (ST)
  10. /**
  11. * 1.是否相册可用
  12. *
  13. * @return <#return value description#>
  14. */
  15. - (BOOL) isAvailablePhotoLibrary;
  16. /**
  17. * 2.是否相机可用
  18. *
  19. * @return <#return value description#>
  20. */
  21. - (BOOL) isAvailableCamera;
  22. /**
  23. * 3.是否可以保存相册可用
  24. *
  25. * @return <#return value description#>
  26. */
  27. - (BOOL) isAvailableSavedPhotosAlbum;
  28. /**
  29. * 4.是否后置摄像头可用
  30. *
  31. * @return <#return value description#>
  32. */
  33. - (BOOL) isAvailableCameraDeviceRear;
  34. /**
  35. * 5.是否前置摄像头可用
  36. *
  37. * @return <#return value description#>
  38. */
  39. - (BOOL) isAvailableCameraDeviceFront;
  40. /**
  41. * 6.是否支持拍照权限
  42. *
  43. * @return <#return value description#>
  44. */
  45. - (BOOL) isSupportTakingPhotos;
  46. /**
  47. * 7.是否支持获取相册视频权限
  48. *
  49. * @return <#return value description#>
  50. */
  51. - (BOOL)isSupportPickVideosFromPhotoLibrary;
  52. /**
  53. * 8.是否支持获取相册图片权限
  54. *
  55. * @return <#return value description#>
  56. */
  57. - (BOOL) isSupportPickPhotosFromPhotoLibrary;
  58. + (UIImagePickerController *)imagePickerControllerWithSourceType:(UIImagePickerControllerSourceType)sourceType;
  59. @end