Skip to content

Commit 0719bce

Browse files
committed
Fixed subclassing crash
Changed `LTHPasscodeViewControllerStrings` macro to use `[LTHPasscodeViewController class]` instead of `[self class]`
1 parent 00e2cc6 commit 0719bce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.8.7
2+
* Fixed subclassing by changing `LTHPasscodeViewControllerStrings` macro to use `[LTHPasscodeViewController class]` instead of `[self class]`.
3+
14
# 3.8.6
25
* German translations fixed.
36

LTHPasscodeViewController/LTHPasscodeViewController.m

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

2626
#ifndef LTHPasscodeViewControllerStrings
2727
#define LTHPasscodeViewControllerStrings(key) \
28-
[[NSBundle bundleWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"LTHPasscodeViewController" ofType:@"bundle"]] localizedStringForKey:(key) value:@"" table:_localizationTableName]
28+
[[NSBundle bundleWithPath:[[NSBundle bundleForClass:[LTHPasscodeViewController class]] pathForResource:@"LTHPasscodeViewController" ofType:@"bundle"]] localizedStringForKey:(key) value:@"" table:_localizationTableName]
2929
#endif
3030

3131
// MARK: Please read

0 commit comments

Comments
 (0)