From 14f68614932c1817521bf55c8aa701ffc165888b Mon Sep 17 00:00:00 2001 From: "Murugan, Vimal" Date: Fri, 8 Nov 2019 22:11:56 +0530 Subject: [PATCH] moved top and bottom pin to scrolling view controller --- MVMCoreUI/BaseControllers/MFProgrammaticTableViewController.h | 2 -- MVMCoreUI/BaseControllers/MFScrollingViewController.h | 3 +++ MVMCoreUI/BaseControllers/ProgrammaticScrollViewController.h | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/BaseControllers/MFProgrammaticTableViewController.h b/MVMCoreUI/BaseControllers/MFProgrammaticTableViewController.h index 01ab9820..a568a27a 100644 --- a/MVMCoreUI/BaseControllers/MFProgrammaticTableViewController.h +++ b/MVMCoreUI/BaseControllers/MFProgrammaticTableViewController.h @@ -12,8 +12,6 @@ @interface MFProgrammaticTableViewController : MFScrollingViewController @property (nullable, weak, nonatomic) UITableView *tableView; -@property (nullable, nonatomic, strong) NSLayoutConstraint *topConstraint; -@property (nullable, nonatomic, strong) NSLayoutConstraint *bottomConstraint; // Registers classes and nibs. Can subclass for different nibs. Can call super and then add new ones after as well. - (void)registerWithTable; diff --git a/MVMCoreUI/BaseControllers/MFScrollingViewController.h b/MVMCoreUI/BaseControllers/MFScrollingViewController.h index 52799769..f44de6c4 100644 --- a/MVMCoreUI/BaseControllers/MFScrollingViewController.h +++ b/MVMCoreUI/BaseControllers/MFScrollingViewController.h @@ -13,6 +13,9 @@ @property (nullable, weak, nonatomic) IBOutlet UIScrollView *scrollView; @property (nullable, weak, nonatomic) IBOutlet UIView *contentView; +@property (nullable, nonatomic, strong) NSLayoutConstraint *topConstraint; +@property (nullable, nonatomic, strong) NSLayoutConstraint *bottomConstraint; + // Recognizes single tap/touches to screen for dismissing keyboard @property (nonnull, strong, nonatomic) UITapGestureRecognizer *dismissKeyboardTapGesture; diff --git a/MVMCoreUI/BaseControllers/ProgrammaticScrollViewController.h b/MVMCoreUI/BaseControllers/ProgrammaticScrollViewController.h index f9f32f69..9e486066 100644 --- a/MVMCoreUI/BaseControllers/ProgrammaticScrollViewController.h +++ b/MVMCoreUI/BaseControllers/ProgrammaticScrollViewController.h @@ -10,7 +10,5 @@ @interface ProgrammaticScrollViewController : MFScrollingViewController -@property (nullable, nonatomic, strong) NSLayoutConstraint *topConstraint; -@property (nullable, nonatomic, strong) NSLayoutConstraint *bottomConstraint; @end