I am creating app with UiScrollview and UIPagectontrol using Autolayout Programmatically, for
I have Created TKScroller as subclass of UIView, I am init it
If you want your TKScroller fixed to the center and support orientation changes, you can simply put the following code in your init
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
and you may need to check all your subview's of TKScroller. If you don't like autosize , you can set (one of the three)
self.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;