Spinning orientation when going to next storyboard - ios

So I've been trying to put off posting here about this because it's such a stupid thing and I imagine it's going to be a simple fix but I honestly cannot find the answer.
http://www.youtube.com/watch?v=SbMBCSQegpw&feature=youtube_gdata_player
This is what keeps happening in the iPad application I'm building.
I have 2 ViewControllers, when I clicked my UIButton to transition to the next Controller, it does the above.
Orientation for each controller is set to landscape and project settings are all set to left only.
I have code in both my .m files to set the orientation to left as well but nothing seems to stop it.
Can anyone help?

Related

Very Strange View Behavior When Implementing 3D Touch Preview

I'm running into a very strange issue with 3D Touch previewing in my app. As you press into a cell to show a preview, a view seems to grow out of the top left corner, until it's about to show the preview view controller, at which point it's the full size of the view controller.
Here's a video of the behavior
I haven't been able to replicate in any apps I've created from scratch; however, creating a new tableview and view controller in the same app it still does it:
Video
I know this isn't a lot to go on, but I've exhausted my debugging knowledge. I'm not getting auto layout errors, when I debug the view hierarchy the view just isn't there. I'm hoping someone has experienced this and knows how to fix it.
Thanks!
It took me a while to hunt this bug down. Turns out it's caused (in my case) by https://github.com/icanzilb/EasyAnimation. When I remove the library the bug is gone.
Cheers!
Edit: As it happens it's documented here: https://github.com/icanzilb/EasyAnimation/issues/14

iPad UIViewController subview reset issues

I am not really sure how to phrase this question but to keep it simple;
I originally started my app for iPhone but now made it universal. Being that did that, I started making iPad.xib files as well... Everything is complete now and everything is working how it should except ONE thing...
On the Controllers, I have an instructions button, (button that when touched, a uiview gets added to the center of the screen and says the instructions).
That all works great but for some reason when I touch it on one of the new iPad Controller (from the iPad xib) all the buttons that were moved around the view prior to touching the button, start to revert back to the initial position...
I do have a function that makes them do that, but to my knowledge, it is not being activated when this instructions button gets touched. If it were, I'm sure this "error" would also happen in the iPhone simulator...
Anyone have any idea? I keep looking at different solutions but can't really figure this out.
Thanks!!
This is most likely due to auto layout. If you change the frame of a view by setting frames, when the view updates (for any reason), the views will revert to the frames that are determined by their constraints. To fix the problem, you should move your buttons around using constraints, or turn off auto layout. While turning off auto layout is the easy way to fix this, you really should learn how to use that system.

Rotations issues in ios6 - black screen

I found several problems with rotations in ios6 using iPAD...all of us...I resolved mostly all of them using the new method shouldAutorotate and shouldAutorotateToInterfaceOrientation. But in one of the views is not updating properly the rotation. You can see (more or less) what happen:
The top images describes the behaviour from landscape to portrait...if I change the rotation of my app in other different of the first image, and come back to the first tab, the app doesn't update properly the view in portrait.
The bottom images describes what happen when I am comming from portrait to landscape...in the last screen I can the half of the screen completely black.
My level in iOS is really basic I will like some tips...what do you think which could be the problem? because in other tabs is not happen of the same app it is not happen.
If you need a piece of code, let me know...thank you!
Try this:
https://github.com/alexth/TBSV
Sample how to have NavigationBar, TabBar and SplitViewController in one project with correct looking transitions between orienations
Thanks for your reaction (ironic). I've discovered what was the problem with the rotation only in a particular screen of my app. The problem is that the one that built the app before me, used one UISplitViewController inside of a UITabBarController. This mix of ViewController, in iOS 6 bring a bunch of problems, specially with the rotations. After thousands of tries, I found this link and it is solved.
UISplitViewController inside UITabBarController in iOS6:
http://objectiveseesharp.wordpress.com/
That's all.
Should I change the title of the question?

ios - simulator started opening in horizontal view. How to get it to go back to default portrait view?

I have a strange thing that recently happened. The simulator keeps starting in horizontal view. Is there a setting to make it start in portrait view? I keep digging around for that setting but can't seem to locate it.
Thanks and sorry for such a simple question.
Try rotating it with CMD + left arrow, that might do the trick.
The order of the 'Supported interface orientation' items of your project-info.plist file is key.
Check if the "Portrait (bottom home button)" is on the very first position in the list. If not, just move it up.
(from this answer)

multiple views in landscape and portrait

I want to implement my app in both landscape and portrait with two different views. When my app in landscape it shows one view and in portrait it shows the second view. It is possible. But when my app is loaded in portrait,it shows the unbutton control in actual place.Then i change orientation to landscape,button changes its position to opposite side and rotate the button so that my button title is also in opposite side. Please help me. And thank you for your helping.
I don't know what you're working with. Maybe this will help you:
http://www.theappcodeblog.com/?p=79
EDIT: updated link - sorry no time to write an inline tut :(

Resources