MonoTouch View Design
Being new to MonoTouch this is a best practice type of question.
If in the current view I am designing in IB I am trying to showcase existing portfolio work, e.g. as on: http://www.attitudedesign.co.uk/portfolio/
And in the app I want to show 5 开发者_运维知识库portfolio items in the following linear list format: | Heading | Text Copy | Image |
What is the best way to go around creating this type of view?
Surely, it cant be dynamically creating Labels, Text, Images to add to the current view?
Use a UITableViewController, here is a good example. It explains all the basics of using UITableViews and the default cell styles, etc.
But in the end, you'll need to make a custom UITableViewCell to get what you want. An example of that is here.
I'd say you should check Miguel's great extension MonoTouch.Dialog on GitHub or this article in his Blog. There are some cell templates included which may fit your needs. You may even use the ImageLoader for optimized usage of web-images.
I had no fun using UITableViews directly with custom DataSources at all.
精彩评论