Welcome, Guest
Username Password: Remember me

Customizing Cell View
(1 viewing) (1) Guest

TOPIC: Customizing Cell View

Customizing Cell View 1 year, 10 months ago #1

So, i've not bought it yet.
But i will if it has one thing that should also be easy in tableviews.

what about changing the style of a tableviewcell?

the most struggling thing on a tableview is the customization of the cells, changing its style, its background, its borders and so on.

is this also implemented, or do we have to do this the "old way" ?

any samples out there?

thanks a lot!
  • choise
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: Customizing Cell View 1 year, 10 months ago #2

Hi:

Sensible TableView supports full customization of its cells. Since SCTableViewCell is a direct descendant of UITableViewCell, this customization is done in a very similar manner to the "old way", i.e. through SCTableViewCell.imageView, SCTableViewCell.backgroundColor, etc.

We always welcome fresh ideas on how to make TableView development a lot easier for our developers, so if you have alternative ideas/dreams in mind, please share it with us and it could be very well implemented real soon.

Thank you very much.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Customizing Cell View 1 year, 10 months ago #3

uh, i don't really know, how this can be done better.


i ihink its always a pain to style cells. for example if you want some custom borders oder backgrounds for your cell.
then in sections, you always have to change your background images, according to where the cell is located in a section (top/middle/bottom/single) and you have to re-arrange them, if you delete a cell.


do you know what i mean?
  • choise
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: Customizing Cell View 1 year, 10 months ago #4

Yes I understand what you mean choise.

One idea would be for us to create these three properties in SCTableViewSection:
topCellBackgroundImageView
middleCellBackgroundImageView
bottomCellBackgroundImageView

Then Sensible TableView would take care of assigning the correct background to the correct cell, depending on its position in the section. This would also happen dynamically if the cells' position ever changes.

Do you think this would be a good solution?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Customizing Cell View 1 year, 9 months ago #5

Hi - Appreciate any help on the following question related to customization.

My table has various controls such as textfields, selections, etc.. I want to display textfield in a rounded rectangle and fixed width, similarly labels for the text field should be fixed width as well. Basically I want to divide the cell into half - left aligned fixed width for labels and right aligned fixed width for controls, for each one of them I want to provide a different style (rounded border for textfield, etc...)

Thanks
Muthu
  • Nat
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Customizing Cell View 1 year, 9 months ago #6

Hey Muthu-

All Sensible Control cells descend from a class called SCControlCell. This class has two properties called controlIndentation and maxTextLabelWidth that do exactly what you want. Please tell me if you need me to send you a sample application.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Time to create page: 1.63 seconds