objective c - UITableView Rounded Custom Cells (w/ image) -
i have quite daunting challenge. want make this:
so:
- i use table (plain not grouped cells).
- cells must have rounded corners & shadow.
- i prefer use
cgrect
draw cells instead of using images (for speed & space economy). - the cells in basic form cell 1, have checkboxes cell 2.
- tutorials use images background rounded cells never touch on point sliding cell reveal actions. think using image entire frame of cell slide , awkward. how can overcome?
- is possible mix cells? regarding adding checkboxes though of 2 ways. either extend entire cell downwards , add checkboxes & text or add 2nd cell type made checkboxes (i prefer option don't know if it's possible mix cell types).
note: cell entire rounded rectangle, not upper part (the upper part title). grey line style , image.
i won't ask specific way of doing this. each has it's own way of doing things. if know how 1 of things above (except creating table view :) ), please me (but keep in mind must compatible rest)!
note 2: swift preferred obj-c fine (unless code can't ported swift).
thanks!
i create custom table view cells table view subclassing uitableviewcell, assigning table view, , there able customize cell uiview , customize .layer.cornerradius including shadow properties on .layer
Comments
Post a Comment