Domanda

Apple ha fornito un esempio la guida View Controller di programmazione, per la creazione di un UITabBarItem, in questo modo:

- (id)init {
   if (self = [super initWithNibName:@"MyViewController" bundle:nil]) {
      self.title = @"My View Controller";

      UIImage* anImage = [UIImage imageNamed:@"MyViewControllerImage.png"];
      UITabBarItem* theItem = [[UITabBarItem alloc] initWithTitle:@"Home" image:anImage tag:0];
      self.tabBarItem = theItem;
      [theItem release];
   }
   return self;
}

Comunque, io sono un graphic-niubbo e voglio usare Apple integrato in grafica per Tab Bar Items. Come potrei farlo? Dove si trova un elenco delle icone disponibili ed i loro nomi?

È stato utile?

Soluzione

Usa - (id)initWithTabBarSystemItem:(UITabBarSystemItem)systemItem tag:(NSInteger)tag per creare UITabBarItem.
Per i possibili valori UITabBarSystemItem guardano in UITabBarItem di riferimento di classe, la sezione 'Costanti'.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top