Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Cell with UIImage

Cell with UIImage 1 year, 2 months ago #1

Hello,

Am using SensibleTableView and think it is great so far, used in a recent project but that was quite simple.

I have a requirement for my next project to set a cell in the middle of a Table View to contain an image, the index of this cell may change so not sure how you set the height of this cell. Also is there a cell type that contains a UIImage?

Can someone help?

An example of this at the moment is attached. At the moment it is at the end but I want it to be in the middle but this may change and at the moment I set the height in a standard UITableView delegate method.
2011_03_13_16_36_25.png
  • lesmond
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1

Re: Cell with UIImage 1 year, 2 months ago #2

Hi Lee,

This can be easily done using custom cells (STV 2.0). Just create the cell in Interface Builder, set its height, then add a UIImage to it. Once you're done, add the cell to STV from XCode normally (for a detailed example, please check the "Custom Cells App" sample application).
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Cell with UIImage 1 year, 2 months ago #3

Thanks Tarek, I will give that a go.

Lee
  • lesmond
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
  • Page:
  • 1
Time to create page: 0.70 seconds