UITableView showing more rows than specified in numberOfRowsInSection:

后端 未结 9 1092
谎友^
谎友^ 2021-02-01 03:32

I want my tableView to show 6 rows with text in it, in this case \"Example.\" As far as I can tell, I have my numberOfSectionsInTableView: and numberOfRowsIn

9条回答
  •  迷失自我
    2021-02-01 03:46

    You could do something along the lines of:

    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:7 inSection:0];
    [self.mytableView cellForRowAtIndexPath:indexPath].hidden = YES;
    

    Im sure there are some better ways but this is the first thing that came to mind.

提交回复
热议问题