Skip to content

Commit

Permalink
minor refine
Browse files Browse the repository at this point in the history
minor refine
  • Loading branch information
liu044100 committed Sep 10, 2015
1 parent 8d354c7 commit e585aff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Example/TouchID/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ -(void)showCoverImageView{
}

-(void)hideCoverImageView{
[UIView animateWithDuration:0.2 animations:^{
_coverImageView.alpha = 0.0;
}];
if (_coverImageView) {
[UIView animateWithDuration:0.2 animations:^{
_coverImageView.alpha = 0.0;
} completion:^(BOOL finished) {
[_coverImageView removeFromSuperview];
_coverImageView = nil;
}];
}
}

- (void)applicationWillResignActive:(UIApplication *)application {
Expand Down
3 changes: 2 additions & 1 deletion SmileAuth/Classes/SmileAuthenticator.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ typedef NS_ENUM(int, SecurityType) {
@property (nonatomic, copy) NSString * localizedReason;
@property (nonatomic, strong) SmileKeychainWrapper *keychainWrapper;
@property (nonatomic, assign) SecurityType securityType;
@property (nonatomic, assign) BOOL isShowingAuthVC;
/*!@brief This property show whether the Auth view is showing or not.*/
@property (nonatomic, readonly) BOOL isShowingAuthVC;
@property (nonatomic, strong) UIViewController *rootVC;
@property (nonatomic, weak) id <SmileAuthenticatorDelegate> delegate;
/*!@brief <b>For customization</b>, use this property to customize tint color. The default color is pink.*/
Expand Down
1 change: 1 addition & 0 deletions SmileAuth/Classes/SmileAuthenticator.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ @interface SmileAuthenticator()

@property (nonatomic, assign) LAPolicy policy;
@property (nonatomic, strong) LAContext * context;
@property (nonatomic, readwrite) BOOL isShowingAuthVC;

@end

Expand Down

0 comments on commit e585aff

Please sign in to comment.