XMMContentBlocks Class Reference
Inherits from | NSObject |
---|---|
Conforms to | UITableViewDataSource UITableViewDelegate UIWebViewDelegate |
Declared in | XMMContentBlocks.h XMMContentBlocks.m |
– initWithTableView:api:
Initialize XMMContentBlocks with tableview and an api. TableView will get set up. XMMEnduserApi will be used to download other contentBlocks or map-pins.
- (instancetype)initWithTableView:(UITableView *)tableView api:(XMMEnduserApi *)api
Parameters
tableView |
Instance of an UITableView. |
---|---|
api |
Instance of XMMEnduserApi. |
Declared In
XMMContentBlocks.h
– viewWillAppear
Call this method, when your view will appear. This will show the content in the tableview.
- (void)viewWillAppear
Declared In
XMMContentBlocks.h
– viewWillDisappear
Call this method, when your view will disappear. This will pause sounds and remove observer.
- (void)viewWillDisappear
Declared In
XMMContentBlocks.h
– displayContent:
Display contentBlocks with header.
- (void)displayContent:(XMMContent *)content
Parameters
content |
XMMContent object. |
---|
Declared In
XMMContentBlocks.h
– displayContent:addHeader:
Display contentBlocks with or without header.
- (void)displayContent:(XMMContent *)content addHeader:(Boolean)addHeader
Parameters
content |
XMMContent object. |
---|---|
addHeader |
boolean for adding header or not. |
Declared In
XMMContentBlocks.h
– updateFontSizeTo:
Can be used to change the fontSize of the text contentBlock for better readability.
- (void)updateFontSizeTo:(TextFontSize)newFontSize
Parameters
newFontSize |
New fontSize of the text contentBlock |
---|
Declared In
XMMContentBlocks.h