简体   繁体   中英

Communicating between Mysql php and Objective c

Currently I am developing an application in Xcode using objective c where you can post something and view other peoples posts. It sends this post to a database, and then on another view controller that post would be shown for any user of the app to see. I know how to post and receive data from the database, however my problem is displaying the data. I would like to display an un-editable textview or something along that line for each post on the page that displays the posts. I am not sure how to create one for every time there is a new post and how to make the page scroll. I know this is a lot to ask, however if possible please help me out. If you are confused about how I am trying to display the data, you could look at edmodo's mobile app. I am trying to display the posts in that manner. Once again, thank you and please help!

To solve your problem you need to use UITableView or UITableViewController and need to create Custom UITableViewCell as per your need to display Post.

A Custom UITableViewCell consist of UITextView and by setting its Editable property in Attribute Inspector or programmatically self.yourTextView.editable = No; you can make UITextView Non-editable. Also check following links:

  1. http://www.appcoda.com/customize-table-view-cells-for-uitableview/
  2. http://www.appcoda.com/self-sizing-cells/

Hope this will helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM