What do you want to save?
Add Code snippet
New code examples in category Swift
-
Ahmed Abd Rabo 2021-09-10 03:09:02
present modal view controller in half size parent controller swift
import UIKit final class ViewControllerB: UIViewController { lazy var backdropView: UIView = { let bdView = UIView(frame: self.view.bounds) bdView.backgroundColor = UIColor.black.withAlphaComponent(0.5) return bdView }() let menuView = UIVi... Add solution -
-
Dutch 2021-09-07 17:52:03
swift get slected row data in tableview cell
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { let indexPath = tableView.indexPathForSelectedRow() //optional, to get from any UIButton for example let currentCell = tableView.cellForRowAtIndexP... Add solution -