iLogin
iLogin is a quick and easy way to add a Login/Signup UX to your iOS app.
Table of Contents
About The Project
iLogin is a quick and easy way to add a Login/Signup UX to your iOS app.
Built With
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
Required software and how to install them.
- install cocoapods
sudo gem install cocoapods
Installation
- Add to Podfile
pod 'BPod', :git => 'https://github.com/jalajoninc/BPod.git'
- Install this pod
pod install
- Open the Xcode workspace
open [app name].xcworkspace
- Import the library (header's file)
@import iLogin;
- Declare the library (header's file)
@property (nonatomic, strong) iLogin *myFrame;
- Initialize iLogin Framework
CGRect rect = CGRectMake( 0.0, 0.0, 159.0, 300.0 );
self.myFrame = [[iLogin alloc] initWithFrame:rect];
[self.view addSubview:self.myFrame];
- Monitor iLogin activities
[self.login watchAction:1 login:^BOOL(NSString *usr, NSString *pwd) {
NSLog( @"forget : %@ %@", usr, pwd );
return( false );
} reg:^BOOL(NSString *name, NSString *phone) {
NSLog( @"forget : %@ %@", name, phone );
return( false );
} forget:^BOOL(NSString *phone) {
NSLog( @"forget : %@", phone );
return( false );
} createPwd:^BOOL(NSString *pwd) {
NSLog( @"forget : %@", pwd );
return( false );
} verify:^BOOL(NSString *code) {
NSLog( @"forget : %@", code );
return( false );
}];
- Monitor iLogin activities in swift
login?.watchAction(1, login: { ( usr : String?, pwd : String?) -> Bool in
return false
}, reg: { (name : String?, phone : String?) -> Bool in
return false
}, forget: { (phone : String?) -> Bool in
return false
}, createPwd: { (pwd : String?) -> Bool in
return false
}, verify: { (code : String?) -> Bool in
return false
})
Usage
For more examples, please refer to the Documentation
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
- Email: native.jong@gmail.com