KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have seen other people who have had this question, but most of the responses aren't working on the latest 3.0 build of iPhone OS. Anyway, I'm wondering how I can programatically rotate a UIView without any input from the accelerometer. The code I have found so far: CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2); view.transform = transform; CGRect contentRect = CGRectMake(-80, 80, 480, 320); view.bounds = contentRect; However, this doesn't work for UIView (in my testing). Is there something I have to do my AppDelegate in order for this/other code to function, or is there a better way of doing the same thing? Thanks for any help!
Tags (comma-separated)
Save Edits
Cancel