I am new to iphone development. I am trying to develop an alarm app, same as in the iphone itself. But I am struggling to get to display t开发者_开发技巧he view of the table that shows only the filled in rows. I get the datatable all over the view. which property on the datatable decides to show only the filled in rows. Thanks,
That is a custom UITableView, I would look at this example for more help on customizing UITableViews and UITableViewCells.
It sounds like you'll want to set your table style to "grouped".
How can I set a UITableView to grouped style
Then you'll need to make sure you're implementing the following function in your table view controller. This will give you 3 rows in this example.
// Customize the number of rows in the table view.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 3;
}
精彩评论