Issue with uiview, scroll not working - ios

i'm using storyboard for present my interface, this view controller show from mapView through modal segue, but after i change orientation in view scroll is not working
Any idea? Please, help

Related

Rotating a VC presented as UIModalPresentationOverCurrentContext

iOS 8. I am presenting a view controller with presentation style: UIModalPresentationOverCurrentContext. This works great until I rotate my device, at which time the presented view is not properly adjusted.
Example: I presented over a portrait context. Entire screen covered by my new view (which has semi-transparencies). I rotate to landscape. The presented view rotates, but is now centered and remains at portrait width.
Both the presenting VC and the presented view are created in a storyboard using autolayout. Since I can't add constraints to the topmost view in a VC (right?) I'm not sure how to keep my presented view entirely covering the view below it.
This can happen if Presentation in the Segue is set to Page Sheet. In the storyboard, change the presentation to Full Screen or Over Full Screen
Since you're not using a segue, use UIModalPresentationOverFullScreen.

Resizing the detail view if popover comes

I am using master detail layout in my application. Every thing works fine, but when i clicked on the menu the popover comes and it is placed above the detail view. like this
actually in the detail view i have some videos displayed, like this..
when the popover come the videos are not visible, how to resize the detail view so that it moves right automatically when popover comes and the details are displayed like in case of landscape mode. Thank you..
This is how a UISplitViewController works when in portrait orientation. The detail view can't be resized.
However, just before the popover slides into view, the splitViewController:popoverController:willPresentViewController: delete method will be called. You could implement this and adjust the views in your detail controller to shift as needed. But this would not be standard behavior.

iPhone: hiding a custom view under the navigation bar

For the app I working on, I am implementing a control that is similar to the notification view on iOS. So, I am working on dragging a view down from under the navigation bar of the UIViewController.
My question is whether there's a way to position a view that is MOSTLY hidden under the navigation bar?? The goal is to have just a few pixels visible, so that there's a way to grab it and drag down.
Thanks!!
Alright, resolved this issue myself. Turns out what works for me is having a custom view and then adding that view in IB in the order where nav bar comes after that custom view.
Another trick was to figure out how to initialize/embed that custom view and for that I found help here: UIView subclass with its own XIB

How to make the target view a subview of window using storyboard segue?

I am using storyboard and trying to segue from a bar view to a full screen view where the bar view's parent view is the same size as the bar view and is clipping subviews, but I'd like the destination view to take the full screen. Is there an easy way to do this by setting the properties of either the segue or the destination view controller? What is the proper way to do this? I really would like to make the full screen view a subview of window.
Thanks for any suggestions!
Luverio
I had to go around the segue by manually instantiate the target view controller and add it as the window's rootViewController.

Problem with the position of the view of RootController inside of a SplitView

I changed my rootView controller of my split view to add one UIimage and an UIView. All works fine but when I navigate in portrait mode and change to landscape mode my view is a few pixels down than it have to stay. If I navigate in landscape mode it doesn't occur. And the most strange is if I navigate in portrait and I push the popover button and then I change the orientation, the view of the root is in the perfect place :S.
Is like the popover put it in the correct place.
Could you help me please?
Thank you very much.
Check all places where you manually set property frame of your views that are not correctly displayed.
Check property autoresizingMask of your all view.
If problem wasn't found place your code here.
Finally I resolve the problem: When I dismiss the popover I have to get out the animation. If I do this, all works fine :)

Resources