From 87d0731ecc34bb0a4b86eb4a6bea202e6eae78c4 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 20 May 2016 00:19:17 +0800 Subject: [PATCH] add IB_Designable and IBInspectable for preview in xib/ storyboard --- UIImageViewAligned/UIImageViewAligned.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UIImageViewAligned/UIImageViewAligned.h b/UIImageViewAligned/UIImageViewAligned.h index 8280b93..ec0fb0a 100644 --- a/UIImageViewAligned/UIImageViewAligned.h +++ b/UIImageViewAligned/UIImageViewAligned.h @@ -25,7 +25,7 @@ typedef enum typedef UIImageViewAlignmentMask UIImageViewAignmentMask __attribute__((deprecated("Use UIImageViewAlignmentMask. Use of UIImageViewAignmentMask (misspelled) is deprecated."))); - +IB_DESIGNABLE @interface UIImageViewAligned : UIImageView @@ -33,10 +33,10 @@ typedef UIImageViewAlignmentMask UIImageViewAignmentMask __attribute__((deprecat @property (nonatomic) UIImageViewAlignmentMask alignment; // Properties needed for Interface Builder quick setup -@property (nonatomic) BOOL alignLeft; -@property (nonatomic) BOOL alignRight; -@property (nonatomic) BOOL alignTop; -@property (nonatomic) BOOL alignBottom; +@property (nonatomic) IBInspectable BOOL alignLeft; +@property (nonatomic) IBInspectable BOOL alignRight; +@property (nonatomic) IBInspectable BOOL alignTop; +@property (nonatomic) IBInspectable BOOL alignBottom; // Make the UIImageView scale only up or down // This are used only if the content mode is Scaled