Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. #define ISBannerSize_BANNER [[ISBannerSize alloc] initWithDescription:@"BANNER"]
  4. #define ISBannerSize_LARGE [[ISBannerSize alloc] initWithDescription:@"LARGE"]
  5. #define ISBannerSize_RECTANGLE [[ISBannerSize alloc] initWithDescription:@"RECTANGLE"]
  6. #define ISBannerSize_SMART [[ISBannerSize alloc] initWithDescription:@"SMART"]
  7.  
  8. @interface ISBannerSize : NSObject
  9.  
  10. - (instancetype)initWithWidth:(NSInteger)width andHeight:(NSInteger)height;
  11. - (instancetype)initWithDescription:(NSString *)description;
  12.  
  13. @property (readonly) NSString* sizeDescription;
  14. @property (readonly) NSInteger width;
  15. @property (readonly) NSInteger height;
  16.  
  17. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement