chiahsien / chtstickerview Goto Github PK
View Code? Open in Web Editor NEWA movable, resizable, rotatable UIView with one fingle, which is fully customizable!
License: MIT License
A movable, resizable, rotatable UIView with one fingle, which is fully customizable!
License: MIT License
This functionality would be fully complete if user can resize the view in different directions without it being rotated. I have seen this as a trend in many apps: one corner does a resize-rotate (done) and another corner does rotate only (can be easily done by adjusting your code). But how to resize the third corner without rotation so bounds can be easily adjusted to the touch location. This means resizing occurs unproportionally while the opposite corner is locked in its position? I tried this code but it does not perfectly work.
As your demo code, if stickerViewA (content with UIImageView) the corner (remove or rotate side) under and not full cover via stickerViewB (content with UILabel),
than I can't remove or rotate stickerViewA.
I suggest you can select stickerViewA and bring it to front temporary,
and select other sticker or unselect stickerViewA push to really layer.
is it Possible To Add new Button in Middle of CHTSticker View ? I will try but Button is not Display in Center it is Display Out of View.
First: Thanks for the nice control!
There is a small problem in the handleCloseGesture routine: if you removeFromSuperview first, then the respondsToSelector returns false.
You should first call the delegate and then removeFromSuperview:
Kind Regards
Graham
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.