UITableView with static cells does not appear

前端 未结 5 1885
广开言路
广开言路 2020-11-28 04:44

I have created a new Xcode project using Storyboards (tab view template). I added a couple of view controllers to my storyboard, and wanted to use a UITableView with static

5条回答
  •  自闭症患者
    2020-11-28 05:28

    Don't implement any of the methods below when you use the static table view:

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {
    }
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    {
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    }
    

提交回复
热议问题