google.com, pub-2203413632152319, DIRECT, f08c47fec0942fa0
Simple way to return back/previous view controller by presented or pushed in iOS Swift.
case 1 : using with Navigation controller
self.navigationController?.popViewController(animated: true)
case 2 : using with present view controller
self.dismiss(animated: true, completion: nil)
Show and hide a tableView on button click
ReplyDelete@IBAction func PressRefine(sender: AnyObject) {
if sportTableView.hidden {
sportTableView.hidden = false
} else {
sportTableView.hidden = true
}
}
or
@IBAction func PressRefine(sender: AnyObject) {
sportTableView.hidden = !sportTableView.hidden
}
very good
ReplyDelete