Estoy haciendo una app que incluye una webView en una de sus 'pestañas'.
Mi problema es que no quiero que le de bola a la posición del iPhone cuando esta ahi y quede fijo en Portrait. Lo que encontré por todos lados no me funciona (aunque probándolo con un proyecto de 0 si).
- (BOOL)shouldAutorotate{
return NO;
}
Alguna solución, recomendación, etc?
DUDA: Xcode - InterfaceOrientation
-
jbolso77
- Supermacaco
- Mensajes: 2763
- Registrado: 29 Jun 2007
DUDA: Xcode - InterfaceOrientation
It's not the years in your life that count. It's the life in your years.
-
Apple Boy
- Supermacaco
- Mensajes: 2560
- Registrado: 21 Jul 2008
Proba:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
..::Apple Boy::..
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
..::Apple Boy::..
Pablo Epíscopo · [email protected]
MacBook Pro 13.3" · Intel Core i5 Dual Core 2.5 GHz · 4 GB SDRAM · 500 GB HD · Intel HD Graphics 4000 · OS X Mavericks
Wireless Mighty Mouse · Wireless Keyboard · Apple Remote · iPod Shuffle
iPhone 5S · White · 16GB
MacBook Pro 13.3" · Intel Core i5 Dual Core 2.5 GHz · 4 GB SDRAM · 500 GB HD · Intel HD Graphics 4000 · OS X Mavericks
Wireless Mighty Mouse · Wireless Keyboard · Apple Remote · iPod Shuffle
iPhone 5S · White · 16GB