Ghstart / HongshiLogin

This Modeule includes the main login function and simple UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HongshiLogin

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

HongshiLogin is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "HongshiLogin"

Use

steps

One Step:

#import "HSWLLoginConstant.h"

Two Step:

You can use finsishBlcok call back

HSWLLoginManager *loginManager = [[HSWLLoginManager alloc] init];
[loginManager showAddTo:self finishedBlock:nil];

Using Delegate to handle Methods

add delelget to instance

loginManager.delegate = self;
@interface XXXViewController ()<HSWLLoginManagerDelegate>

@end

delegate methods according to the Types

- (void)HSWLViewWillShowWhichType:(HSWLShowStyle)ToType {
   NSLog(@"%ld will show", (long)ToType);
}

- (void)HSWLViewDidShowWhichType:(HSWLShowStyle)ToType {
   NSLog(@"%ld did show", (long)ToType);
}

types -->

typedef NS_ENUM(NSInteger, HSWLShowStyle) {
    HSWLLogin = 99,
    HSWLRegister,
    HSWLForgetPassword,
    HSWLFollowDetails
};

Author

John, gonghuan2020@gmail.com

License

HongshiLogin is available under the MIT license. See the LICENSE file for more info.

About

This Modeule includes the main login function and simple UI

License:MIT License


Languages

Language:Objective-C 97.5%Language:Shell 2.1%Language:Ruby 0.4%