Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

cocoa-touch - 创建具有多列的表(Create table with multiple columns)

Can anyone help me?

(谁能帮我?)

I want to create a table with 5 columns and 8 rows in Xcode.

(我想在Xcode中创建一个包含5列8行的表。)

Then i need to fill in table with data from Database.

(然后我需要用数据库中的数据填写表。)

I'm working on an application for Ipad.

(我正在为Ipad开发应用程序。)

I've search a lot for this problems but no result.

(我为此问题进行了大量搜索,但没有结果。)

Can anyone give an example for this?

(有人可以为此举一个例子吗?)

Thank you so much!

(非常感谢!)

  ask by Steven.Nguyen translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can try using UICollectionView .

(您可以尝试使用UICollectionView 。)

Here's a tutorial in which it is used to create a grid :

(这是一个用来创建网格的教程:)

http://www.appcoda.com/ios-programming-uicollectionview-tutorial/

(http://www.appcoda.com/ios-programming-uicollectionview-tutorial/)

You can replace the code for adding images with the code for putting in your data from database.

(您可以将用于添加图像的代码替换为用于从数据库中放入数据的代码。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...