PSImageEditors
1.0.0
مكون تحرير صور مفتوح المصدر يعتمد هذا النمط على تأثيرات تحرير الصور الخاصة بـ WeChat وDingTalk، وهو يدعم وظائف تشمل الكتابة على الجدران، وإضافة النص، وإضافة الفسيفساء، والاقتصاص، وما إلى ذلك. وقد تم استخدام هذا المكون في المشاريع الداخلية عبر الإنترنت.
下载Demo后,将子文件夹PSImageEditors拖入到项目中, 导入头文件PSImageEditors.h开始使用,注意: 项目中需要有Masonry.1.1.0!
pod 'PSImageEditors'
إذا وجدت أن بحث pod PSImageEditors ليس هو الإصدار الأحدث، فيمكنك تنفيذ تحديث pod repo في الوحدة الطرفية لتحديث المستودع المحلي، والبحث مرة أخرى بعد اكتمال التحديث.
UIImage *image = [UIImage imageNamed:@"[email protected]"];
PSImageEditor *imageEditor = [[PSImageEditor alloc] initWithImage:image delegate:self dataSource:self];
[self.navigationController pushViewController:imageEditor animated:YES];
#pragma mark - PSImageEditorDelegate
- (void)imageEditor:(PSImageEditor *)editor didFinishEdittingWithImage:(UIImage *)image {
self.imageView.image = image;
[editor dismiss];
NSLog(@"%s",__func__);
}
- (void)imageEditorDidCancel {
NSLog(@"%s",__func__);
}
#pragma mark - PSImageEditorDelegate
- (UIColor *)imageEditorDefaultColor {
return [UIColor redColor];
}
- (PSImageEditorMode)imageEditorDefalutEditorMode {
return PSImageEditorModeDraw;
}
- (CGFloat)imageEditorDrawPathWidth {
return 5;
}
- (UIFont *)imageEditorTextFont {
return [UIFont boldSystemFontOfSize:24];
}
- 2018.06.14 (tag:0.1.0):提交0.1.0版本
- 2020.07.16 (tag:0.2.0): 修复编辑图片模糊的问题,UI更新
- 2020.07.23 (tag:0.2.1): 增加默认选中编辑选项功能
- 2020.08.19 (tag:0.2.2): 底部ToolBar修改,文字组件优化体验