MMMViewWrappingCell
Objective-C
@interface MMMViewWrappingCell<ViewType> : MMMTableViewCell
Swift
class MMMViewWrappingCell<ViewType> : MMMTableViewCell where ViewType : AnyObject
A simple table view cell wrapping the given view.
This is handy when you have a view already and just want to show it as one more cell.
The view being wrapped should support Auto Layout and inflate its height properly. The cell has its selectionStyle
set to UITableViewCellSelectionStyleNone
as these kind of cells typically do not appear selected.
-
The view this cell wraps. It is added into the
contentView
and is laid out to fully fill it.Declaration
Objective-C
@property (nonatomic, readonly) ViewType _Nonnull wrappedView;
Swift
var wrappedView: ViewType { get }
-
Undocumented
Declaration
Objective-C
- (id)initWithView:(ViewType)view reuseIdentifier:(NSString *)reuseIdentifier;
Swift
init(view: ViewType, reuseIdentifier: String)
-
Undocumented
Declaration
Objective-C
- (id)initWithView:(ViewType)view reuseIdentifier:(NSString *)reuseIdentifier inset:(UIEdgeInsets)inset;
Swift
init(view: ViewType, reuseIdentifier: String, inset: UIEdgeInsets)
-
Unavailable
Undocumented
Declaration
Objective-C
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier NS_UNAVAILABLE;