BottomPopUpView 版本 0.0.7

BottomPopUpView 版本 0.0.7

Khojiakbar维护。



BottomPopUpView 版本 0.0.7

  • Akbar

BottomPopUpView

使用 Swift 编写的 CocoaPods 库



必须拥有且易于使用的库。

使用

在您的VC中添加以下

    let bottomPopUpView = BottomPopUpView(wrapperContentHeight: self.view.frame.height) /* Create an instance of BottomPopUpView with height */
    
    bottomPopUpView.tableView.dataSource = self /* Set the data source of table view */
    
    /* Create a Xib UITableViewCell and register it */
    let nib = UINib(nibName: "ExampleUITableViewCell", bundle: nil)
    bottomPopUpView.tableView.register(nib, forCellReuseIdentifier: "ExampleUITableViewCell")
    
    /* Present, very easy :) */
    self.present(bottomPopUpView, animated: true, completion: nil)



    class ViewController: UIViewController, UITableViewDataSource {
       func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
          return 1
       }

        func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
           guard let cell = tableView.dequeueReusableCell(withIdentifier: "ExampleAirPodsTableViewCell") as? ExampleAirPodsTableViewCell else { return UITableViewCell() }
            return cell
       }
    }