UIScrollView not scrolling in Swift

前端 未结 12 1224
Happy的楠姐
Happy的楠姐 2021-02-03 19:03

My UIScrollView won\'t scroll down. I don\'t know why. I already followed Apple documentation regarding to this issue.

@IBOutlet weak var scroller: UIScrollView!         


        
12条回答
  •  眼角桃花
    2021-02-03 19:18

    I do not know it is a good solution, but you can try to set headerview to empty UITableView.

    let scrollView: UIView = UIView(frame: CGRectMake(0, 0, 400, 2300))
    
    tableView.tableHeaderView = scrollView
    

提交回复
热议问题