Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.82 KB

README_EN.md

File metadata and controls

47 lines (34 loc) · 2.82 KB

LFImagePickerController

中文

  • It starts with the TZImagePickerController project. Thanks for sharing.
  • Compatible with custom photos/videos to display.
  • Support for Gif (compressible), video (compressible), picture (compressible).
  • Support for editing photos and videos. (it depends on the LFMediaEditingController library and has no editing by default.)
  • Video editors need to access the music library and need to add NSAppleMusicUsageDescription to info.plist.
  • Support interface orientation.
  • Support for i18n configuration. (copy LFImagePickerController.bundle\ LFImagePickerController.strings to your project and modify the corresponding value. For more information, see DEMO; Note: it does not follow the system language switch display.)
  • For more information on the properties, see LFImagePickerController.h.

Installation

  • CocoaPods:pod 'LFImagePickerController' or pod 'LFImagePickerController/LFMediaEdit' (with editing)

Demo configuration editing(You don't have to edit. You can ignore it.)

  • Install the LFMediaEditingController library using pod install
  • Project for LFImagePickerController-- > Build Settings-- > Preprocessor Macros-- > add LF_MEDIAEDIT=1 to Debug and Release

Demonstration

  • LFImagePickerController *imagePicker = [[LFImagePickerController alloc] initWithMaxImagesCount:9 delegate:self];
  • //Set up according to demand
  • imagePicker.allowTakePicture = NO; //Do not display take photo button
  • imagePicker.doneBtnTitleStr = @"Done"; //Modify the name of the done button
  • [self presentViewController:imagePicker animated:YES completion:nil];

Individuation

  • maxVideosCount ==> The maximum selectable number of videos. The default value is the same as the maxImagesCount value. If maxImagesCount! = MaxImagesCount. The mixed selection will be changed to a single selection (either pictures or videos).
  • defaultAlbumName ==> You can change the album displayed by default; for example: defaultAlbumName = @"Animated";
  • thumbnailCompressSize ==> If you don't need the thumbnailImage and thumbnailData of the LFResultImage. You can set thumbnailCompressSize = 0; The callback will be faster.
  • autoSavePhotoAlbum ==> Save the edited picture or video to the album by default.
  • syncAlbum ==> Sync with system album. If syncAlbum = YES; it may cause the data being edited to be lost (The edited picture may have been deleted.).
  • selectedAssets ==> selected photos or videos by default.
  • Please preview LFImagePickerController.h for more features.

Presentation

image

Presentation iOS13 UIModalPresentationPageSheet

image