Posts

Showing posts with the label uiscrollview

MDCFlexibleHeaderView height issue

Image
Clash Royale CLAN TAG #URR8PPP MDCFlexibleHeaderView height issue I'm trying to use the MDCFlexibleHeader, in a ViewController with a UIScrollView. The headerView is always set to the minimumHeight, which is weird because I set a maximumHeight also. I think it's because of the way I set my constraints, but I'm not sure I'm doing wrong with my constraints. I tried to use the following as example code https://github.com/material-components/material-components-ios/tree/develop/demos/Shrine Here is my code: import UIKit import MaterialComponents.MaterialFlexibleHeader class MainFlexibleHeaderContainerViewController: MDCFlexibleHeaderContainerViewController { init() { let viewController = MainViewController(nibName: nil, bundle: nil) super.init(contentViewController: viewController) viewController.headerViewController = self.headerViewController viewController.setupHeaderView() } required init?(coder aDecoder: NSCoder) { fa...

UICollectionView with full page cells VS UIScrollView with child view controllers

Image
Clash Royale CLAN TAG #URR8PPP UICollectionView with full page cells VS UIScrollView with child view controllers I'm trying to create a ViewController which would have swipe-able (android like tabs) pages. These pages themselves will have scrollviews(vertical) inside them and multiple views which would be added dynamically depending on type of response (different network calls for each page). I can't use a PageViewController as I want the pages to take up only half the screen. Issues with CollectionView - Issues with ScrollView - PS - data in each page would be 4-10 stackviews each containing 2-10 images/labels OR just one collectionview PSS - Total number of tabs wouldn't exceed 10, minimum would be 1 Have you thought about using CoreData to keep track of the data you'd like? – Nickolans yesterday ...