Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Commit

Permalink
Fixed a compile error when using an iOS SDK prior to iOS 7. Fixed iss…
Browse files Browse the repository at this point in the history
…ue 603.
  • Loading branch information
eskroch committed Oct 26, 2013
1 parent 52150c9 commit d37d138
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions framework/iPhoneOnly/CPTTextStylePlatformSpecific.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ typedef enum _CPTTextAlignment {
CPTTextAlignmentNatural = NSTextAlignmentNatural ///< Natural alignment of the text's script.
}
CPTTextAlignment;

// @cond
// for iOS SDK compatibility
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 70000
@interface NSString(CPTTextStylePlatformSpecificExtensions)

-(CGSize)sizeWithAttributes:(NSDictionary *)attrs;

@end
#else
#endif
#endif

/// @endcond

0 comments on commit d37d138

Please sign in to comment.