diff --git a/CHANGELOG.md b/CHANGELOG.md index ca67c48..45e5e0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 4.0.2 +* Minor change: remove no needed code related to unsupported iOS versions (iOS < 7). + # 4.0.1 * Made `isCurrentlyOnScreen` public. diff --git a/LTHPasscodeViewController/LTHPasscodeViewController.m b/LTHPasscodeViewController/LTHPasscodeViewController.m index 050d020..c18adb9 100755 --- a/LTHPasscodeViewController/LTHPasscodeViewController.m +++ b/LTHPasscodeViewController/LTHPasscodeViewController.m @@ -12,12 +12,7 @@ #define LTHiPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 #define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithAttributes: @{NSFontAttributeName : _labelFont}].height -#else -// Thanks to Kent Nguyen - https://github.com/kentnguyen -#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithFont:_labelFont].height -#endif #ifndef LTHPasscodeViewControllerStrings #define LTHPasscodeViewControllerStrings(key) \