BaseUITableViewCell
open class BaseUITableViewCell: UITableViewCell, BaseView
BaseUITableViewCell is a subclass of UITableViewCell and implements BaseView. It has some extra proporties and support for SyncEngine.
-
Flag for whether to resize the values for iPad.
Declaration
Swift
@IBInspectable open var sizeForIPad:Bool = false; -
Background color key from SyncEngine.
Declaration
Swift
@IBInspectable open var bgColorStyle:String? = nil -
Undocumented
Declaration
Swift
open class BaseUITableViewCell: UITableViewCell, BaseView -
Flag for showing seperator
Declaration
Swift
@IBInspectable open var hasSeperator:Bool -
Seperator Color key from SyncEngine.
Declaration
Swift
@IBInspectable open var seperatorColorStyle:String? = nil -
Flag for showing seperator on the top.
Declaration
Swift
@IBInspectable open var seperatorOnTop:Bool = false -
Font name key from Sync Engine.
Declaration
Swift
@IBInspectable open var fontName:String? = "fontRegular" -
Font size/ style key from Sync Engine.
Declaration
Swift
@IBInspectable open var fontStyle:String? = "medium" -
Detail text font name key from SyncEngine.
Declaration
Swift
@IBInspectable open var fontDetailStyle:String? = "fontRegular" -
Font Color key from SyncEngine.
Declaration
Swift
@IBInspectable open var fontColor:String? = nil -
Detail text font color key from SyncEngine.
Declaration
Swift
@IBInspectable open var detailColor:String? = nil -
Holds Table View Cell Data.
Declaration
Swift
open var data:Any? -
Undocumented
Declaration
Swift
open class BaseUITableViewCell: UITableViewCell, BaseView -
Convenience constructor with cell reuseIdentifier - by default style = UITableViewCellStyle.default.
Parameter
Parameter reuseIdentifier: Reuse identifierDeclaration
Swift
public convenience init(reuseIdentifier: String?)Parameters
reuseIdentifierReuse identifier
-
Overridden constructor to setup/ initialize components.
- Parameters:
- style: Table View Cell Style
- reuseIdentifier: Reuse identifier
Declaration
Swift
override public init(style: UITableViewCellStyle, reuseIdentifier: String?)Parameters
styleTable View Cell Style
reuseIdentifierReuse identifier
- Parameters:
-
Required constructor implemented.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Overridden method to setup/ initialize components.
Declaration
Swift
override open func awakeFromNib() -
Overridden method to receive selected states of table view cell
- Parameters:
- selected: Flag for Selected State
- animated: Flag for Animation
Declaration
Swift
override open func setSelected(_ selected: Bool, animated: Bool)Parameters
selectedFlag for Selected State
animatedFlag for Animation
- Parameters:
-
Overridden methed to update layout.
Declaration
Swift
override open func layoutSubviews()
-
This method should be called in cellForRowAt:indexPath. it also must be overriden in all sub classes of BaseUITableViewCell to update the table view cell’s content.
Parameter
Parameter data: Cell DataDeclaration
Swift
open func updateData(_ data:Any?)Parameters
dataCell Data
View on GitHub
BaseUITableViewCell Class Reference