ios - Is it possible to display UITableViewCellStyleValue1 and UITableViewCellStyleSubtitle within the same row -
i display information below , infront of main content in row in table view, possible?
something like...see screenshot.
thanks
make subclass of uitableviewcell , exposes correct outlets.
something this
@interface mycustomuitableviewcell < uitableviewcell @property (nonatomic, readonly, weak) uilabel *title; @property (nonatomic, readonly, weak) uilabel *subtitle; @property (nonatomic, readonly, weak) uilabel *title; - (id) initwithreuseidentifier:(nsstring*)identifier; @end
you can create ui programmatically or build cell nib , connect outlets.
note: new ui should added contentview property of uitableviewcell.
here few similar questions
- subclassing uitableviewcell correctly?
- http://blog.giorgiocalderolla.com/2011/04/16/customizing-uitableviewcells-a-better-way/
- http://mobile.tutsplus.com/tutorials/iphone/customizing-uitableview-cell/ (shows how using prototype cell , tags if don't want create sub class.)
Comments
Post a Comment