开发者

how to get the datatable view that is used in Alarm application in iphone?

开发者 https://www.devze.com 2022-12-23 17:31 出处:网络
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

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消