44 lines
1.1 KiB
Objective-C
44 lines
1.1 KiB
Objective-C
//
|
|
// StackableViewController.m
|
|
// myverizon
|
|
//
|
|
// Created by Scott Pfeil on 3/26/14.
|
|
// Copyright (c) 2014 Verizon Wireless. All rights reserved.
|
|
//
|
|
|
|
#import "StackableViewController.h"
|
|
#import "MFStyler.h"
|
|
#import "ViewConstrainingView.h"
|
|
#import "MVMCoreUIUtility.h"
|
|
|
|
@interface StackableViewController ()
|
|
|
|
@end
|
|
|
|
@implementation StackableViewController
|
|
|
|
- (UIEdgeInsets)spaceAroundUIObject:(nullable id)object {
|
|
return [super spaceAroundUIObject:object size:[MVMCoreUIUtility getWidth]];
|
|
}
|
|
|
|
- (UIEdgeInsets)spaceAroundUIObject:(nullable id)object size:(CGFloat)size {
|
|
return [self spaceAroundUIObject:object];
|
|
}
|
|
|
|
- (void)resetSpaceForFormArrayWithConstrainingViews {
|
|
for (UIView *view in self.formUIArray) {
|
|
ViewConstrainingView *constrainingView = (ViewConstrainingView *)view.superview;
|
|
[constrainingView setPinConstantsWithInsets:[self spaceAroundUIObject:view]];
|
|
}
|
|
}
|
|
|
|
+ (UIEdgeInsets)standardSpaceAroundUIObject {
|
|
return [super standardSpaceAroundUIObjectForSize:[MVMCoreUIUtility getWidth]];
|
|
}
|
|
|
|
+ (UIEdgeInsets)standardSpaceAroundUIObjectForSize:(CGFloat)size {
|
|
return [self standardSpaceAroundUIObject];
|
|
}
|
|
|
|
@end
|