Mobile API Reference  MicroStrategy 2019
PromptBaseCell Class Reference

#import <PromptBaseCell.h>

Inheritance diagram for PromptBaseCell:
PromptBarcodeCell PromptCalendarCell PromptFormattableCell PromptLocationCell PromptSummaryScreenCell PromptSwitchCell PromptTextCell PromptTimePickerCell

Instance Methods

(void) - populate
 
(void) - addContent
 
(NSInteger) - addRequiredLabel
 
(void) - addErrorMessage
 
(NSInteger) - rightMargin
 
(void) - didRotateFromInterfaceOrientation
 

Protected Attributes

UILabel * titleLabel
 
UILabel * errorLabel
 
UILabel * requiredLabel
 

Properties

Prompt * prompt
 

Detailed Description

This is used by the UITableView of the PromptSummaryScreen, where each prompt has a cell in the table.

See also
PromptFormattableCell, the subclass.

Method Documentation

◆ addContent()

- (void) addContent

Does nothing. Subclasses need to provide the view content that is appropriate for that type of prompt.

◆ addErrorMessage()

- (void) addErrorMessage

Added a UILabel with an error message with red text from prompt.errorDetails.errorMsg

◆ addRequiredLabel()

- (NSInteger) addRequiredLabel

Adds the UILabel "This prompt is required." to the cell

Returns
the right edge of the UILabel

◆ didRotateFromInterfaceOrientation()

- (void) didRotateFromInterfaceOrientation

◆ populate()

- (void) populate

◆ rightMargin()

- (NSInteger) rightMargin

Member Data Documentation

◆ errorLabel

- (UILabel*) errorLabel
protected

◆ requiredLabel

- (UILabel*) requiredLabel
protected

◆ titleLabel

- (UILabel*) titleLabel
protected

Property Documentation

◆ prompt

- (Prompt *) prompt
readwritenonatomicretain