Reputation: 224
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!
Upvotes: 1
Views: 91
Reputation: 46
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:
Hope this will helps.
Upvotes: 1