How can I make a login screen like the Facebook app with "Email" and "Password" textfields?
Facebook Login
I'm really new to iOS programming, sorry if this is an easy question.
First of all you have to understand UIView
s and UIViewController
s creation and management.
Then, you could ask your self if you want to create the interface through xib files or programatically. The first way is quite simple. By means of drag and drop operations you could create a user interface in a short time. The second, instead, is more complex for a newbie but I think it could be a valid solution to understand stuffs.
Note that each operation that you do in xib files can be done programatically.
Now, I'll try to explain what elements you need to create that interface.
To create the interface like the following you could create a xib view interface. The view for this interface is the container for your elements. To the container view you could add a UITableView
with a grouped style. This UITableView
has 2 rows and each row allows to enter text by means of UITextField
. To do this, you have to create it programatically. No chance to do it with xib.
Login and signup can be created with two UIButton
s. To those buttons you need to attach some actions.
Finally the background image could be set programatically as a background image for your container.
This is a simple description on how to create such an interface. Before starting, I suggest you to read some tutorial on how to:
UIView
and UIViewController
UIImageView
and/or UIImage
A good starting point for iOS application development could be www.raywenderlich.com/tutorials.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With