numberOfSectionsInTableView not working

后端 未结 3 1398
清歌不尽
清歌不尽 2021-01-06 09:53
import UIKit

class exploreViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
    @IBOutlet weak var searchBar: UISearchBar!
    @IBOutle         


        
3条回答
  •  北海茫月
    2021-01-06 10:52

    This is actually due to access level resolution. When we don't specify the "public" ourselves, the compiler resolves it as to be some privately implemented function and even warns that it nearly matches a public function. If one ignores this then it neglects this function and rather calls the default implementation. Hope this helps someone.

提交回复
热议问题