Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Fix a build problem with iOS 6 as base SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Sep 26, 2013
1 parent bc98e9e commit 4d8013c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/BITHockeyHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,16 @@
}

NSString *bit_base64String(NSData * data, unsigned long length) {
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
SEL base64EncodingSelector = NSSelectorFromString(@"base64EncodedStringWithOptions:");
if ([data respondsToSelector:base64EncodingSelector]) {
return [data base64EncodedStringWithOptions:0];
} else {
#endif
return bit_base64StringPreiOS7(data, length);
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
}
#endif
}

BOOL bit_validateEmail(NSString *email) {
Expand Down

0 comments on commit 4d8013c

Please sign in to comment.