Ops..... :P
----------------------------------------------------------
Ubiratan Soares
Ubiratan Soares
(11) 98565 8455
On Wed, Sep 25, 2013 at 7:38 PM, André Milke <andremilke@gmail.com> wrote:
Boa noite pessoal,--Estou fazendo um trabalho de aula usando TabBar, fiz um método que le um valor e troca de aba conforme o numero inserido.Contudo, quando e a aba 0 o programa se perde e nao volta para a primeira aba.Abaixo trecho do codigo.O que pode ser?@implementation AbaViewController
- (IBAction)trocaAba:(id)sender {
//self.txtTrocaAba.text
NSString* aba = self.txtTrocaAba.text;
int abaInt = [aba intValue];
if (abaInt > 3|| abaInt == 0 )
{
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:0];
}
else
{
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:abaInt];
}
self.txtTrocaAba.text = @"";
}
Atenciosamente,André Milke
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário