More code review polish.

pull/1/head
Óscar Morales Vivó 7 years ago committed by Matthew Chen
parent 4b98352a38
commit 69b5272547

@ -226,7 +226,7 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
[emptyBoxLabel autoPinLeadingToSuperviewMargin]; [emptyBoxLabel autoPinLeadingToSuperviewMargin];
[emptyBoxLabel autoPinTrailingToSuperviewMargin]; [emptyBoxLabel autoPinTrailingToSuperviewMargin];
[emptyBoxLabel autoPinVCenterToSuperviewVCenter]; [emptyBoxLabel autoAlignAxisToSuperviewAxis:ALAxisHorizontal];
UIRefreshControl *pullToRefreshView = [UIRefreshControl new]; UIRefreshControl *pullToRefreshView = [UIRefreshControl new];
pullToRefreshView.tintColor = [UIColor grayColor]; pullToRefreshView.tintColor = [UIColor grayColor];

@ -88,7 +88,6 @@ CGFloat ScaleFromIPhone5(CGFloat iPhone5Value);
- (NSLayoutConstraint *)autoPinTopToSuperviewMarginWithInset:(CGFloat)margin; - (NSLayoutConstraint *)autoPinTopToSuperviewMarginWithInset:(CGFloat)margin;
- (NSLayoutConstraint *)autoPinBottomToSuperviewMargin; - (NSLayoutConstraint *)autoPinBottomToSuperviewMargin;
- (NSLayoutConstraint *)autoPinBottomToSuperviewMarginWithInset:(CGFloat)margin; - (NSLayoutConstraint *)autoPinBottomToSuperviewMarginWithInset:(CGFloat)margin;
- (NSLayoutConstraint *)autoPinVCenterToSuperviewVCenter;
- (NSLayoutConstraint *)autoPinLeadingToTrailingEdgeOfView:(UIView *)view; - (NSLayoutConstraint *)autoPinLeadingToTrailingEdgeOfView:(UIView *)view;
- (NSLayoutConstraint *)autoPinLeadingToTrailingEdgeOfView:(UIView *)view offset:(CGFloat)margin; - (NSLayoutConstraint *)autoPinLeadingToTrailingEdgeOfView:(UIView *)view offset:(CGFloat)margin;

@ -302,14 +302,6 @@ CGFloat ScaleFromIPhone5(CGFloat iPhone5Value)
return constraint; return constraint;
} }
- (NSLayoutConstraint *)autoPinVCenterToSuperviewVCenter {
self.translatesAutoresizingMaskIntoConstraints = NO;
NSLayoutConstraint *constraint = [self.centerYAnchor constraintEqualToAnchor:self.superview.centerYAnchor];
constraint.active = YES;
return constraint;
}
- (NSLayoutConstraint *)autoPinTopToSuperviewMargin - (NSLayoutConstraint *)autoPinTopToSuperviewMargin
{ {
return [self autoPinTopToSuperviewMarginWithInset:0.f]; return [self autoPinTopToSuperviewMarginWithInset:0.f];

Loading…
Cancel
Save