Closed atalayasa closed 6 years ago
I have found it myself if anyone needs it.
let MinHeight: CGFloat = 100.0
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
let tHeight = tableView.bounds.height
let temp = tHeight/CGFloat(items.count) //Item size on your side menu
return temp > MinHeight ? temp : MinHeight
}
I am using ENSwiftSideMenu when I try to use it iPad it is not fit the screen how can I adapt side menu controller according to iPad? I am using following code in my sideNavigationController class