IOS - Centering UIScrollView inside UIView container programmatically with Autolayout issue
问题 I'm trying to replicate the safari pages scrollview, which has its frame that is slightly narrower than iPhone screen. So According to few suggestions I'm placing a the scrollview (450x280 points) inside a "clipView" (450x320 points). //viewController methods -(void)viewDidAppear:(BOOL)animated{ CGRect pagingScrollViewFrame = self.clipview.frame; pagingScrollViewFrame.size.width = 280; NSLog(@"clipview h:%f e w:%f",self.clipview.frame.size.height,self.clipview.frame.size.width); NSLog(@