123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #import "Acknowledgements.h"
- #import "AppDelegate.h"
- @implementation Acknowledgements
- - (void)viewDidLoad
- {
- [super viewDidLoad];
-
- NSURL *rtfPath;
-
-
-
-
-
- rtfPath = [[NSBundle mainBundle] URLForResource:@"Acknowledgements" withExtension:@"rtf"];
-
- NSAttributedString *attributedStringWithRtf = [[NSAttributedString alloc] initWithFileURL:rtfPath options:@{NSDocumentTypeDocumentAttribute:NSRTFTextDocumentType} documentAttributes:nil error:nil];
- self.txtTermini.attributedText = attributedStringWithRtf;
-
- self.automaticallyAdjustsScrollViewInsets = NO;
- [self.navigationController.navigationBar setTintColor:COLOR_BRAND];
- self.view.backgroundColor = [UIColor whiteColor];
- self.title = NSLocalizedString(@"_acknowledgements_", nil);
- self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(cancelPressed)];
- self.txtTermini.hidden = true;
- }
- - (void)viewDidAppear:(BOOL)animated
- {
- [super viewDidAppear:animated];
-
-
- [CCAspect aspectNavigationControllerBar:self.navigationController.navigationBar encrypted:NO online:[app.reachability isReachable] hidden:NO];
-
- [self.txtTermini setContentOffset:CGPointZero animated:NO];
- self.txtTermini.hidden = false;
- }
- - (void)cancelPressed
- {
- [self dismissViewControllerAnimated:true completion:nil];
- }
- @end
|