Skip to content

isthisjoe/AccountAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 13, 2014
add1c2e · Aug 13, 2014

History

6 Commits
Aug 13, 2014
Aug 13, 2014
Aug 13, 2014
Aug 13, 2014
Aug 13, 2014
Aug 13, 2014

Repository files navigation

AccountAlertView

Simple, quick account flow using UIAlertViews.

Written in Swift.

AccountAlertView

A highly configurable login / sign up account flow using only UIAlertViews.

var accountAlertView: AccountAlertView = AccountAlertView()

...

override func viewDidLoad() {
    
    accountAlertView.loginWithUsername = {
        (username: String!, password: String!, completed: () -> (), failed: (message: String!) -> ()) in
        
        if self.isRequestSuccessful {
            completed()
        } else {
            failed(message: "Failed Request.")
        }
    }
    
    accountAlertView.signUpWithUsername = {
        (username: String!, password: String!, completed: () -> (), failed: (message: String!) -> ()) in
        
        if self.isRequestSuccessful {
            completed()
        } else {
            failed(message: "Failed Request.")
        }
    }
    
    accountAlertView.showAccountAlert()
}

Author

Joe Nguyen, [email protected]

License

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

About

Simple, quick account flow using UIAlertView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages