SPUserResizableView
SPUserResizableView copied to clipboard
Rotation
If you rotate the view, the resizing no longer works
Hi jhollez, I have the same problem, got any idea?
Anyone updated the code to fix this yet? I am experiencing the same issue.
Any luck? Having the same issue.
I'm happy to take a look at any pull requests that fix the issue. Unfortunately this code was written for a portrait-only app, so it may not be trivial to make the change.
The problem is that frame is used instead of bounds, and frame becomes invalid after a rotation transformation. Unfortunately I did not have the time to change it in this code here.
On Tue, Jan 15, 2013 at 10:03 AM, Stephen Poletto [email protected]:
I'm happy to take a look at any pull requests that fix the issue. Unfortunately this code was written for a portrait-only app, so it may not be trivial to make the change.
— Reply to this email directly or view it on GitHubhttps://github.com/spoletto/SPUserResizableView/issues/2#issuecomment-12258449.
ok thanks guys. Any help would be great.
Heya,
Rotation works perfect for me. One thing I fixed in the code is that if you rotate and your frames height/width suddenly become smaller than minwidth/height it wouldn't let you resize, that might be one of the issues. I don't think I changed anything else but I might have absently minded changed something. Also I set all the UIautoresize stuff to yes and have the parent set to yes resize subviews.
Here's the code sorry for paste bin, I'm a noob at github and didn't feel like figuring it out today. .m file: http://pastebin.com/cv4kCuAZ .h file: http://pastebin.com/fUVyfDsL
Wow thank you! I will check this out when I get home. This is a huge help.
Sent from my iPhone
On Jan 30, 2013, at 9:07 PM, meese [email protected] wrote:
Heya,
Rotation works perfect for me. One thing I fixed in the code is that if you rotate and your frames height/width suddenly become smaller than minwidth/height it wouldn't let you resize, that might be one of the issues. I don't think I changed anything else but I might have absently minded changed something. Also I set all the UIautoresize stuff to yes and have the parent set to yes resize subviews.
Here's the code sorry for paste bin, I'm a noob at github and didn't feel like figuring it out today. .m file: http://pastebin.com/cv4kCuAZ .h file: http://pastebin.com/fUVyfDsL
— Reply to this email directly or view it on GitHub.
hi guys.. i've tried @meese solution but it not works.. can you explain why? i've used uirotationgesture.. it seems the same code, because after rotation image continues to collapse! @meese can you post your version?
did you use the pastebin version?
Yep.. I've tried ti use ti but it doesn't work :(
The frame rotates but when I drags bounds after rotation the frame collapses!
I have added solution to support transforms: https://github.com/pionl/SPUserResizableView