I want to overlay on the main storyboard a view with textfields for entering user name and password.
Is there a standard approach to do this?
Need I create a new window with a new view for the textfields?
I would be very grateful for a hint where I can get an info about this topic or perhaps a hint how to do this.
Thank you very much
Is there a standard approach to do this?
Need I create a new window with a new view for the textfields?
I would be very grateful for a hint where I can get an info about this topic or perhaps a hint how to do this.
Thank you very much
Do you want the view with the textfields to be visible at all times, or appear when a button is pressed?
If you want it to be visible at all times, you can just drag-and-drop a view from the object library (press the + at the top right of Xcode). You can add some textfields from there too. Once you've added all the elements, you need to connect the text fields' delegate to you main view controller. Check out this tutorial.
If you want it to appear when a button is pressed or similar, you can drag the view into the Scene Dock. This way, the view is hidden, but you can still configure all the subviews and add the text fields. To show the view, you'll need to connect the view to your main view controller with an IBOutlet. Tutorial
You don't need to create a new window (you almost never use windows (UIWindow) in iOS. They're just a container for your views, and the app provides one for you automatically).
If you want it to be visible at all times, you can just drag-and-drop a view from the object library (press the + at the top right of Xcode). You can add some textfields from there too. Once you've added all the elements, you need to connect the text fields' delegate to you main view controller. Check out this tutorial.
If you want it to appear when a button is pressed or similar, you can drag the view into the Scene Dock. This way, the view is hidden, but you can still configure all the subviews and add the text fields. To show the view, you'll need to connect the view to your main view controller with an IBOutlet. Tutorial
You don't need to create a new window (you almost never use windows (UIWindow) in iOS. They're just a container for your views, and the app provides one for you automatically).