All Products
Search
Document Center

Mobile Platform as a Service:Double title

Last Updated:Jul 19, 2023

AUDoubleTitleView is a view control containing a title line and a subtitle line in the navigation pane.

Sample image

image.png

API description

    /**
 The titleView of a navigation pane that contains two lines.
 */
@interface AUDoubleTitleView : UIView

/**
 *  Create TitleViews of the title and subtitle.
 *
 *  @param title          The main title.
 *  @param detaileTitle The subtitle.
 *
 *  @return Return the initialized APTitleView control.
 */
- (UIView *)initWithTitle:(NSString *)title detailTitle:(NSString *)detaileTitle;

/**
 *  Modify the title text. 
 *
 *  @param title          Main title text.
 *
 */
- (void)updateTitle:(NSString *)title;

/**
 *  Modify the subtitle text. 
 *
 *  @param detailTitle          Main title text.
 *
 */
- (void)updateDetailTitle:(NSString *)detailTitle;


/**
 Change the title font.

 @param titleFont The title font.
 */
- (void)updateTitleFont:(UIFont *)titleFont;

/**
 *  Change the subtitle font.
 *
 *  @param detailTitleFont      Main title font.
 *
 */
- (void)updateDetailTitleFont:(UIFont *)detailTitleFont;

@end

Code sample

self.navigationItem.titleView = [[AUDoubleTitleView alloc] initWithTitle:@"Title" detailTitle:@"Subtitle"];