How to display HTML-like table data on iPhone?

前端 未结 2 1862
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 07:36

I have a set of data in a matrix which I would like to display in my iPhone app with all of the rows and columns intact. Everything I can find on the web dealing with \"tabl

相关标签:
2条回答
  • 2020-12-20 07:55

    The solution that I found was simply to use a UIWebView. Then I can build the HTML table dynamically and load it into the web view.

    0 讨论(0)
  • 2020-12-20 08:08

    The UITableView class was specifically designed to only show one column at a time due to the small size of the screen. If the data of your application absolutely needs to be laid out in one big grid on one screen the right way to do it, would be to add each cell as a subview to a custom view. Then implement the layoutSubviews method on your custom view to lay out the frames of the subviews in the grid you want.

    0 讨论(0)
提交回复
热议问题