All Products
Search
Document Center

Double title

Last Updated: May 13, 2021

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

Sample image

API description

 
  1. /**
  2. The titleView of a navigation pane that contains two lines.
  3. */
  4. @interface AUDoubleTitleView : UIView
  5. /**
  6. * Create TitleViews of the title and subtitle.
  7. *
  8. * @param title The main title.
  9. * @param detaileTitle The subtitle.
  10. *
  11. * @return Return the initialized APTitleView control.
  12. */
  13. - (UIView *)initWithTitle:(NSString *)title detailTitle:(NSString *)detaileTitle;
  14. /**
  15. * Modify the title text.
  16. *
  17. * @param title Main title text.
  18. *
  19. */
  20. - (void)updateTitle:(NSString *)title;
  21. /**
  22. * Modify the subtitle text.
  23. *
  24. * @param detailTitle Main title text.
  25. *
  26. */
  27. - (void)updateDetailTitle:(NSString *)detailTitle;
  28. /**
  29. Change the title font.
  30. @param titleFont The title font.
  31. */
  32. - (void)updateTitleFont:(UIFont *)titleFont;
  33. /**
  34. * Change the subtitle font.
  35. *
  36. * @param detailTitleFont Main title font.
  37. *
  38. */
  39. - (void)updateDetailTitleFont:(UIFont *)detailTitleFont;
  40. @end

Code sample

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