Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotation #2

Open
jhollez opened this issue Oct 7, 2012 · 13 comments
Open

Rotation #2

jhollez opened this issue Oct 7, 2012 · 13 comments

Comments

@jhollez
Copy link

jhollez commented Oct 7, 2012

If you rotate the view, the resizing no longer works

@BillHu
Copy link

BillHu commented Dec 25, 2012

Hi jhollez, I have the same problem, got any idea?

@dougb1102
Copy link

Anyone updated the code to fix this yet? I am experiencing the same issue.

@Sean12oshea
Copy link

Any luck? Having the same issue.

@spoletto
Copy link
Owner

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.

@jhollez
Copy link
Author

jhollez commented Jan 15, 2013

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//issues/2#issuecomment-12258449.

@Sean12oshea
Copy link

ok thanks guys. Any help would be great.

@m-abboud
Copy link

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

@Sean12oshea
Copy link

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.

@ghost
Copy link

ghost commented Feb 26, 2014

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?

@m-abboud
Copy link

did you use the pastebin version?

@ghost
Copy link

ghost commented Feb 26, 2014

Yep.. I've tried ti use ti but it doesn't work :(

@ghost
Copy link

ghost commented Feb 26, 2014

The frame rotates but when I drags bounds after rotation the frame collapses!

@pionl
Copy link

pionl commented Aug 15, 2014

I have added solution to support transforms: https://github.com/pionl/SPUserResizableView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants