You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# 3.8.9
2
-
* Added support for iOS App Extensions:
3
-
* Now, if you add a macro to project settings (`LTH_APP_EXTENSIONS`), `LTHPasscodeViewController` doesn’t crash under an extension target.
4
-
* Also, with a new method, you can provide a view in which the lock is going to be presented and centered in.
2
+
* Added support for iOS App Extensions: defining `LTH_IS_APP_EXTENSION` for an extension target will fix `LTHPasscodeViewController` crashing.
3
+
* Added new method: `- (void)showLockScreenOver:(UIView *)superview withAnimation:(BOOL)animated withLogout:(BOOL)hasLogout andLogoutTitle:(NSString *)logoutTitle`. Used to provide a view in which the lock is going to be presented, sized to and centered in.
Copy file name to clipboardExpand all lines: README.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,12 @@
2
2
Simple to use iOS 7 style Passcode - the one you get in Settings when changing your passcode.
3
3
4
4
# How to use
5
-
Drag the contents of `LTHPasscodeViewController` to your project, or add `pod 'LTHPasscodeViewController'` to your podspec file.
5
+
Drag the contents of `LTHPasscodeViewController` to your project, or add `pod 'LTHPasscodeViewController'` to your Podfile (preffered).
6
+
7
+
If your app uses extensions, `LTH_IS_APP_EXTENSION` needs to be defined:
8
+
9
+
* either in each target's `Prefix.pch` file, if there is one, via `#define LTH_IS_APP_EXTENSION`
10
+
* or in each target's build settings, down to `Preprocessor Macros`, double click each of your schemes, click on the `+` on the popup that appears and add `LTH_IS_APP_EXTENSION`
6
11
7
12
Example, called in `application:didFinishLaunchingWithOptions`:
8
13
@@ -32,7 +37,7 @@ if ([LTHPasscodeViewController doesPasscodeExist]) {
32
37
- (void)deletePasscode;
33
38
- (void)savePasscode:(NSString *)passcode;
34
39
- (NSString *)passcode;
35
-
// All of them fall back on the Keychain if they are not implemented, even if [LTHPasscodeViewController useKeychain:NO] was called, for flexibility over what and where you save.
40
+
// All of them fall back on the Keychain if they are not implemented, even if [LTHPasscodeViewController useKeychain:NO] was called, for flexibility over what and where you save.
36
41
// Do you only want to save the passcode in a different location and leave everything else in the Keychain? Call [LTHPasscodeViewController useKeychain:NO], but only implement -savePasscode:
37
42
```
38
43
@@ -48,30 +53,39 @@ if ([LTHPasscodeViewController doesPasscodeExist]) {
* entering foreground and resigning is handled from within the class.
63
77
64
78
65
79
Makes use of [SFHFKeyChainUtils](https://github.com/ldandersen/scifihifi-iphone) to save the passcode in the Keychain. I know he dropped support for it, but I updated it for ARC 2 years ago ([with help](http://stackoverflow.com/questions/7663443/sfhfkeychainutils-ios-keychain-arc-compatible)) and I kept using it since. The 'new' version isn't updated to ARC anyway, so I saw no reason to switch to it, or to any other library.
66
80
67
-
Feel free to [contact me](mailto:[email protected]), or open an issue if anything is unclear, bugged, or can be improved.
81
+
Feel free to [contact me](mailto:[email protected]), or open an issue if anything is unclear, bugged, or can be improved.
0 commit comments