im new to ios programming and im trying to add a segmented controller to a scrollview because the seg controler is too big for the screen with out the scroll view scrolling horizontally. im not sure why it isnt scrolling. i think im missing something small, but i cannot find it. anything helps! thank you!
my code in the viewDidLoad:
scrollView.delegate = self
scrollView.showsHorizontalScrollIndicator = true
self.scrollView.alwaysBounceHorizontal = true
self.scrollView.scrollEnabled = true
self.scrollView.addSubview(segControl)
self.scrollView.pagingEnabled = true
self.scrollView.directionalLockEnabled = false
self.scrollView.contentSize.height = segControl.frame.height
self.scrollView.contentSize.width = segControl.frame.width
segControl.frame.width? Is it greater thanscrollView.frame.width?