creando pantalla de instrucciones en iOS

I often time see in an iOS apps when you first launch the app there will be a one time instruction with arrows and such to show a first time user guide. It's usually a black transparant colored screen with arrows. I was trying to find a few app that does this, but I couldn't. Was wondering if someone knew the terms for these and how to create it?

preguntado el 08 de noviembre de 11 a las 18:11

Too broad of a question. -

¿Se ha resuelto tu pregunta? -

2 Respuestas

Crear un UIView and place it above the view you're wishing to guide the user through. Set up the UIView como una IBOutlet in your classes header file, set the background to black and set the alpha to 0.3 or something similar (test to see how it looks).

En el encabezado:

IBOutlet UIView *overlayView;

En principal:

overlayView.alpha = 0.3f;

You may want to make sure that the overlay shows the first time the users opens the app or maybe store a value in a database for when the user dismisses the screen so that you don't show it again. To do this you can hide the UIView or simply set the alpha to 0.

Then simply add images or annotations to the UIView. As "bentford" said it's quite broad but this should get you on your way. You can also use multiple UIView's or even transformations to animate the screens.

respondido 09 nov., 11:01

Instead of a database, just put a first started flag in the mainBundle - ocodo

You could. Depends if you have a database already or not I suppose. - ingh.am

Point is you wouldn't by default, and setting one up to store a flag... is pretty much the definition of overkill. Your mainBundle is designed to store persistent app state like this. - ocodo

p.ej [[NSUserDefaults standardUserDefaults] objectForKey:appFirstStartOfVersionKey] - ocodo

I did wonder ;) Yea you could do that. I've never used it but I probably will from now. - ingh.am

I use Skitch. You can find it in the Mac App Store.

Skitch can take the screenshot in the simulator and overlay the arrows and notes. Then when you launch the app, you show the image created with Skitch in a UIImageView on top of the actual view. Then just hide the UIImageView.

respondido 09 nov., 11:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.