My array has more than 100 names and I just want to show the first 50 arrays.
I have read this topic () but is there a better solution instead of adding two arrays?
I am adding array like this
- (zero) test {_myArray = [[NSMUTABELARROL] INIT]; [_myArray addObject: usersName]; }
If you want to keep it in a straight line, how many arrays within the table Can be seen, where the array table is the datasource of the view, you can just use the MIN
macro with table disconnection data source - tableView: numberOfRowsInSection:
method:
- (NSInteger) Table view: (UITableView *) table view numberofferaase Insaction: (NSInteger) section {return MIN ([_ array number], 50); }
No comments:
Post a Comment