Nido Apple

Recibe ayuda de expertos

Registrate y pregunta

Es gratis y fácil

Recibe respuestas

Respuestas, votos y comentarios

Vota y selecciona respuestas

Recibe puntos, vota y da la solución

Pregunta

0voto

APP UNIVERSAL

Hola buenas tardes, tengo una aplicación para ipad y iphone 5, pero quisiera saber si hay la menera de poder abrir o desarrollarla para iphone 6 y iphone 6 plus sin la necesidad de tener que hacer otra aplicación aparte, si alguien me pude ayudar se lo agradecería. saludos.

5 Respuestas

0voto

Peter Puntos289100
Por supuesto que no tienes que hacer aplicaciones diferentes. Con auto layout puedes adaptarlo a cualquier tipo de pantalla y resolución, eso incluye todos los iPhones, iPods y iPads que existen. Saludos.

0voto

gonzalo sanchez Puntos3060
Gracias, por el consejo, la manera que lo resolví fue colocando el siguiente código dentro del AppDelegate.m: gracias saludos :)

0voto

Peter Puntos289100
Gracias por compartirlo :) No estaría mal que lo pongas como código en lugar de imagen, así seguro le sirve a alguien más. Saludos.

0voto

gonzalo sanchez Puntos3060
aqui esta el código: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { sleep(3); self.window = [[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]]; if ([[UIDevicecurrentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { if (_window.frame.size.height == 568) { UIStoryboard *story = [UIStoryboard storyboardWithName:mad:"Main_iPhone" bundle:Nil]; [_windowsetRootViewController:[story instantiateInitialViewController]]; } else if (_window.frame.size.height == 667) { UIStoryboard *story = [UIStoryboard storyboardWithName:mad:"Main_iPhone6" bundle:Nil]; [_windowsetRootViewController:[story instantiateInitialViewController]]; }else if (_window.frame.size.height == 736) { UIStoryboard *story = [UIStoryboard storyboardWithName:mad:"Main_iPhone6PLUS" bundle:Nil]; [_windowsetRootViewController:[story instantiateInitialViewController]]; } else { UIStoryboard *story = [UIStoryboard storyboardWithName:mad:"Main" bundle:Nil]; [_windowsetRootViewController:[story instantiateInitialViewController]]; } } returnYES; }

0voto

Peter Puntos289100
Gracias!

Por favor, accede o regístrate para responder a esta pregunta.

Otras Preguntas y Respuestas


...