Skip to content

Commit 2a78215

Browse files
committed
UI_USER_INTERFACE_IDIOM() deprecated in iOS 13
1 parent fdedda6 commit 2a78215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LTHPasscodeViewController/LTHPasscodeViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define LTHiOS8 ([[[UIDevice currentDevice] systemVersion] compare:@"8.0" \
1414
options:NSNumericSearch] != NSOrderedAscending)
15-
#define LTHiPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
15+
#define LTHiPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
1616

1717
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
1818
#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithAttributes: @{NSFontAttributeName : _labelFont}].height

0 commit comments

Comments
 (0)