screen-capture

Com este simples tutorial é possivel tornar sua app muito mais esteticamente melhor com apenas alguns truques para utilizar botões adaptados, parecidos com os botões encontrados em várias aplicações nativas, como os boões do “cronômetro”

Códigos:

Programaticamente:

botao = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObject:@"botao"]];

botao.segmentedControlStyle = UISegmentedControlStyleBar;

botao.momentary = YES;

codeButton.center = CGPointMake(160,400);

[self.view addSubview:botao];

Cores:


botao1.tintColor = [UIColor clearColor];

botao2.tintColor = [UIColor blueColor];

botao3.tintColor = [UIColor yellowColor];

botao4.tintColor = [UIColor redColor];

botao5.tintColor = [UIColor orangeColor];

botao6.tintColor = [UIColor magentaColor];

botao7.tintColor = [UIColor grayColor];

botao8.tintColor = [UIColor greenColor];

botao9.tintColor = [UIColor darkGrayColor];

butao10.tintColor = [UIColor colorWithRed:0 green:0 blue:128/255.0 alpha:1];

butao11.tintColor = [UIColor colorWithRed:124.0/255.0 green:221.0/255.0 blue:24.0/255.0 alpha:0.4];


Adicionando a função:

[botao addTarget:self action:@selector(acao) forControlEvents:UIControlEventValueChanged];


Share and Enjoy:
  • Print
  • Digg
  • Facebook
  • Google Bookmarks
  • email
  • PDF
  • RSS
  • Twitthis