Follow this steps and get popOver STEP 1:- Create New Project "popOverDemo" STEP 2:- install pod "Popover" STEP 3:- and Drag and drop UITableView. STEP 4:- set The consternt. STEP 5:- Copy and Pest this code. import UIKit import Popover class ViewController: UIViewController,UITableViewDelegate,UITableViewDataSource,UIPopoverPresentationControllerDelegate { // MARK:- ---------- OUTLET Declaration ------------ @IBOutlet var myTableViewObj: UITableView! // MARK:- ---------- Variable Declaration ------------ var userNameArray = [String]() fileprivate var popover: Popover! //MARK:- ------- View Life Cycle Functions --------- override func viewDidLoad() { super.viewDidLoad() myTableViewObj.delegate = self myTableViewObj.dataSource = self userNameArray = ["Robart","Tom","Jon","Piter","Harry","Robart","Tom","Jon"]
Comments
Post a Comment