RASettingAboutModel.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // RASettingAboutModel.m
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/9/13.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import "RASettingAboutModel.h"
  9. @interface RASettingAboutModel ()
  10. @end
  11. @implementation RASettingAboutModel
  12. - (CGFloat)height {
  13. return 130.0f;
  14. }
  15. - (NSString *)appName {
  16. if (!_appName) {
  17. NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
  18. _appName = [infoDic objectForKey:@"CFBundleDisplayName"];
  19. }
  20. return _appName;
  21. }
  22. - (NSString *)appVer {
  23. if (!_appVer) {
  24. NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
  25. NSString *ver = [infoDic objectForKey:@"CFBundleShortVersionString"];
  26. NSString *build = [infoDic objectForKey:@"CFBundleVersion"];
  27. _appVer = [NSString stringWithFormat:@"Ver:%@ build %@",ver,build];
  28. }
  29. return _appVer;
  30. }
  31. - (NSString *)appCopyright {
  32. if (!_appCopyright) {
  33. _appCopyright = @"Copyright © 2014 United Software Applications, Inc.";
  34. }
  35. return _appCopyright;
  36. }
  37. - (NSString *)appSupport {
  38. if (!_appSupport) {
  39. _appSupport = @"redantsupport@united-us.net";
  40. }
  41. return _appSupport;
  42. }
  43. - (UIImage *)appIcon {
  44. if (!_appIcon) {
  45. _appIcon = [UIImage imageNamed:@"icon_50"];
  46. }
  47. return _appIcon;
  48. }
  49. - (UIImage *)redantLogo {
  50. if (!_redantLogo) {
  51. _redantLogo = [UIImage imageNamed:@"redant_40"];
  52. }
  53. return _redantLogo;
  54. }
  55. @end