Skip to content

Instantly share code, notes, and snippets.

@abrahamjso
Created May 17, 2012 12:16
Show Gist options
  • Save abrahamjso/2718531 to your computer and use it in GitHub Desktop.
Save abrahamjso/2718531 to your computer and use it in GitHub Desktop.
Views iOS example4
UIImageView *imagen = [[UIImageView alloc]initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"migesa.jpg"]]]; //Creamos una ImageView, que es una imagen y la inicializaremos con el nombre de migesa.jpg, que esta la tenemos guardada en nuestra carpeta Archivos de Xcode
imagen.frame = CGRectMake(10, 200, 115, 115); //Damos el tamano de nuestra vistaImagen
[ventanaFondo addSubview:imagen]; //Agregamos la imagen a la ventanaFondo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment