vesincc / hqimageeditviewcontroller Goto Github PK
View Code? Open in Web Editor NEW头像裁剪、图片裁剪
License: MIT License
头像裁剪、图片裁剪
License: MIT License
if (@available(iOS 11.0, *)) {
make.top.equalTo(@((CGFloat)(([UIApplication sharedApplication].keyWindow.safeAreaInsets.top) + self.topSpace)));
} else {
make.top.equalTo(@((CGFloat)(([UIApplication sharedApplication].keyWindow.layoutMargins.top) + self.topSpace)));
}
IOS12.4.1,相机拍照后调用裁剪,预览图片变形,手动旋转后图片比例恢复正常
pod到工程里吗,在iOS10模拟器上运行崩溃,直接下载Demo运行无问题,pod的库中是不是使用了不兼容iOS10的代码?
1.裁剪框的缩放,触摸判断区域太小了,经常没法控制框的缩放
2.裁剪框没有内部做好适应,给出的接口是自定义裁剪框大小而不是比例,其实作为使用者,裁剪框大小一般都不关心,更多关心的是裁剪框比例,裁剪框大小根据屏幕自适应最好了。
3.旋转、缩放过程中也能点 完成 按钮,导致裁剪的结果不符合预期,最好加个全局的 BOOL 去控制,只有动画执行完毕后点击 完成 按钮 才能完成裁剪,否则不触发action
4.提供的自定义接口太少了,如果能完善一下,我觉得有望超过那个2000stars的裁剪库
5.感谢作者开源此裁剪程序
@Vesincc
HQEditImageEditView的imageWrap方法里面,从bundle读取图片读不到,pod 里的nsbundle mainbundle 取到的是整个项目pod,不是自己pod的bundle
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.