RulesAddCompleteViewController.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // RulesAddCompleteViewController.m
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 11/26/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "RulesAddCompleteViewController.h"
  9. #import "MainViewController.h"
  10. @interface RulesAddCompleteViewController () {
  11. }
  12. @end
  13. #pragma mark - Class Definition
  14. @implementation RulesAddCompleteViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // Do any additional setup after loading the view.
  18. [self initUI];
  19. [self prepareViewDidLoad];
  20. }
  21. - (void)initUI {
  22. }
  23. - (void)viewDidAppear:(BOOL)animated {
  24. [super viewDidAppear:animated];
  25. [UIView animateWithDuration:kfAnimationDur animations:^{
  26. _maskView.alpha = 0.7;
  27. } completion:^(BOOL finished) {
  28. _constraintPopViewTop.constant = 64;
  29. [UIView animateWithDuration:kfAnimationDur animations:^{
  30. [self.view layoutIfNeeded];
  31. }];
  32. }];
  33. }
  34. - (void)prepareViewDidLoad {
  35. }
  36. #pragma mark - Main Logic
  37. #pragma mark - UI Events
  38. - (IBAction)btnCompleteTouched:(id)sender {
  39. [[JDFacade facade] dismissModalStack:YES completion:^{
  40. [[JDFacade facade].mainViewController updateRulesListRecently];
  41. }];
  42. }
  43. #pragma mark - MemoryWarning
  44. - (void)didReceiveMemoryWarning
  45. {
  46. [super didReceiveMemoryWarning];
  47. // Dispose of any resources that can be recreated.
  48. }
  49. @end