Created
May 17, 2012 12:04
-
-
Save abrahamjso/2718459 to your computer and use it in GitHub Desktop.
Views iOS example1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView *ventanaFondo = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; //inicializamos la ventana con el | |
//nombre ventanaFondo, inicializando el frame con los tamanos del delegado | |
ventanaFondo.backgroundColor = [UIColor grayColor]; //A esta vista, contendra un color gris de fondo | |
[self.view addSubview:ventanaFondo]; //Agregamos la vista a la vista Padre (por lo general la llamamos con self.view) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment