Authored by Robert Payne

Deprecations

@@ -17,13 +17,12 @@ @@ -17,13 +17,12 @@
17 /** 17 /**
18 * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute 18 * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute
19 */ 19 */
20 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide;  
21 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide;  
22 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop;  
23 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom;  
24 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop;  
25 -@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom;  
26 - 20 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide NS_DEPRECATED_IOS(8.0, 11.0);
  21 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide NS_DEPRECATED_IOS(8.0, 11.0);
  22 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop NS_DEPRECATED_IOS(8.0, 11.0);
  23 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom NS_DEPRECATED_IOS(8.0, 11.0);
  24 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop NS_DEPRECATED_IOS(8.0, 11.0);
  25 +@property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom NS_DEPRECATED_IOS(8.0, 11.0);
27 26
28 @end 27 @end
29 28
@@ -12,6 +12,9 @@ @@ -12,6 +12,9 @@
12 12
13 @implementation MAS_VIEW_CONTROLLER (MASAdditions) 13 @implementation MAS_VIEW_CONTROLLER (MASAdditions)
14 14
  15 +#pragma clang diagnostic push
  16 +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
  17 +
15 - (MASViewAttribute *)mas_topLayoutGuide { 18 - (MASViewAttribute *)mas_topLayoutGuide {
16 return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 19 return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
17 } 20 }
@@ -32,7 +35,7 @@ @@ -32,7 +35,7 @@
32 return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 35 return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
33 } 36 }
34 37
35 - 38 +#pragma clang diagnostic pop
36 39
37 @end 40 @end
38 41