قالب وردپرس درنا توس
Home / IOS Development / iOS – UIView loosens from the bottom of UICollectionView on bla

iOS – UIView loosens from the bottom of UICollectionView on bla



I have a UICollectionView that lets a user get into the reps via a UIView containing a picker. The picker container is attached to the bottom of the display as long as the UICollectionView does not need to roll. As more cells are added and the view must scroll, my picker container is no longer attached to the bottom of my display. I have attached a screenshot of my problem and the code showing how I have attached my pickerContainer to the bottom of my collectionView.

  la pickerContainer = UIView (frame: CGRect (x: 0, y: self.collectionView.frame.height - pickerContainerHeight, width: self.collectionView.frame.width, height: pickerContainerHeight))
<....some other code that i dont think matters....>
collectionView.addSubview (pickerContainer)

  enter the picture description here


Source link