bc... [密码]
Home » Source Code » » LLLockPassword.m

LLLockPassword.m ( File view )

  • By lzwandnju 2017-02-09
  • View(s):0
  • Download(s):0
  • Point(s): 1
//  LLLockPassword.m
//  LockSample
//  Created by Lugede on 14/11/12.
//  Copyright (c) 2014年 lugede.cn. All rights reserved.

#import "LLLockPassword.h"

@implementation LLLockPassword

#pragma mark - 锁屏密码读写
+ (NSString*)loadLockPassword

    NSUserDefaults* ud = [NSUserDefaults standardUserDefaults];
    NSString* pswd = [ud objectForKey:@"lock"];
    //    LLLog(@"pswd = %@", pswd);
    if (pswd != nil &&
        ![pswd isEqualToString:@""] &&
        ![pswd isEqualToString:@"(null)"]) {

        return pswd;
    return nil;


+ (void)saveLockPassword:(NSString*)pswd

    [[NSUserDefaults standardUserDefaults] setObject:pswd forKey:@"lock"];
    [[NSUserDefaults standardUserDefaults] synchronize];


// 是否需要提示输入密码
+ (BOOL)isAlreadyAskedCreateLockPassword

    NSUserDefaults* ud = [NSUse
(Please download the complete source code to view)
Expand> <Close

Want complete source code? Download it here

Point(s): 1

0 lines left, continue to read

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
.gitignore495.00 B2015-08-21|08:09
01.97 kB
01.97 kB
entries419.00 B2015-08-21|08:09
01.97 kB
project.pbxproj.svn-base20.23 kB2015-08-21|08:09
project.pbxproj20.42 kB2015-08-21|08:09
01.97 kB
01.97 kB
entries420.00 B2015-08-21|08:09
01.97 kB
contents.xcworkspacedata.svn-base155.00 B2015-08-21|08:09
contents.xcworkspacedata155.00 B2015-08-21|08:09
01.97 kB
AppDelegate.h470.00 B2015-08-21|08:09
AppDelegate.m2.93 kB2015-08-21|08:09
01.97 kB
LaunchScreen.xib3.65 kB2015-08-21|08:09
Main.storyboard10.38 kB2015-08-21|08:09
FirstViewController.h258.00 B2015-08-21|08:09
FirstViewController.m808.00 B2015-08-21|08:09
01.97 kB
01.97 kB
Contents.json585.00 B2015-08-21|08:09
01.97 kB
01.97 kB
Contents.json165.00 B2015-08-21|08:09
circle_indecator.pdf17.13 kB2015-08-21|08:09
01.97 kB
Contents.json162.00 B2015-08-21|08:09
circle_normal.pdf44.45 kB2015-08-21|08:09
01.97 kB
Contents.json164.00 B2015-08-21|08:09
circle_selected.pdf45.65 kB2015-08-21|08:09
01.97 kB
Contents.json161.00 B2015-08-21|08:09
circle_wrong.pdf22.26 kB2015-08-21|08:09
01.97 kB
Contents.json3.02 kB2015-08-21|08:09
01.97 kB
Contents.json154.00 B2015-08-21|08:09
first.pdf2.41 kB2015-08-21|08:09
01.97 kB
Contents.json155.00 B2015-08-21|08:09
second.pdf2.37 kB2015-08-21|08:09
Info.plist1.39 kB2015-08-21|08:09
01.97 kB
LLLockConfig.h297.00 B2015-08-21|08:09
LLLockIndicator.h301.00 B2015-08-21|08:09
LLLockIndicator.m2.54 kB2015-08-21|08:09
LLLockPassword.h433.00 B2015-08-21|08:09
LLLockPassword.m1.27 kB2015-08-21|08:09
LLLockView.h530.00 B2015-08-21|08:09
LLLockView.m8.56 kB2015-08-21|08:09
LLLockViewController.h884.00 B2015-08-21|08:09
LLLockViewController.m13.94 kB2015-08-21|08:09
LLLockViewController.xib7.58 kB2015-08-21|08:09
SecondViewController.h300.00 B2015-08-21|08:09
SecondViewController.m2.25 kB2015-08-21|08:09
main.m335.00 B2015-08-21|08:09
01.97 kB
Info.plist748.00 B2015-08-21|08:09
LockSampleTests.m869.00 B2015-08-21|08:09

LLLockPassword.m (87.24 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D