SignUpViewController
class SignUpViewController: GeneralUIViewController, UITableViewDelegate, UITableViewDataSource
This GeneralUIViewController controls the sign up view. It allows the user to create an account through Facebook, Google, E-mail, or Phone.
Handles account creation with email/password and social authentication through Firebase, Google Sign-In, and Facebook Login.
-
This table view sets up simple scrolling and reusable cells to simplify view layouts. This solution is more elegant than implementing a scroll view.
Declaration
Swift
@IBOutlet weak var tableView: GeneralUITableView!
-
Setup the view.
Declaration
Swift
override func viewDidLoad()
-
Returns the number of sections in this tableView.
Declaration
Swift
func numberOfSections(in tableView: UITableView) -> Int -
Returns the height of a given cell based on indexPath.
Declaration
Swift
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat -
Returns the number of rows in this tableView.
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int -
Returns the cell using a reusable identifier based on the indexPath.
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Unselects a row after it is selected by the user. This tableview does not need selection.
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Returns the username that was typed in by the user.
Declaration
Swift
func getuid() -> String? -
Returns the password that was typed in by the user.
Declaration
Swift
func getpw() -> String? -
Changes the rootViewController once the user has been created.
Declaration
Swift
func userCreated() -
Changes the rootViewController once if the user logs in through social media.
Declaration
Swift
func userLoggedIn()
-
An action item for when the Facebook Login Button is clicked.
Declaration
Swift
@IBAction func fbLoginButtonClicked(sender: AnyObject) -
An action item for when the Google Login Button is clicked.
Declaration
Swift
@IBAction func googleLoginButtonClicked(sender: AnyObject) -
This function takes the information provided in this view’s
CustomUITextFieldobjects and sends the information toFirebaseto attempt logging in. Any failure messages are shown to the user as a notification.Declaration
Swift
@IBAction func signupWithCredentials(_ sender: Any)
View on GitHub
SignUpViewController Class Reference