From 98d96b14d7c9b7de43a215c8b3cd8d6b6cd8d227 Mon Sep 17 00:00:00 2001 From: Charles Powell Date: Sat, 28 Nov 2015 16:46:52 -0700 Subject: [PATCH] Adapt IBInspectable marqueeType to target only Interface Builder. --- MarqueeLabel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MarqueeLabel.h b/MarqueeLabel.h index e6419a0a..7acba4e2 100755 --- a/MarqueeLabel.h +++ b/MarqueeLabel.h @@ -174,8 +174,11 @@ typedef NS_ENUM(NSUInteger, MarqueeType) { @see textAlignment */ - +#if TARGET_INTERFACE_BUILDER @property (nonatomic, assign) IBInspectable NSInteger marqueeType; +#else +@property (nonatomic, assign) MarqueeType marqueeType; +#endif /** Defines the duration of the scrolling animation.