Apple 提供了一个示例 View Controller Programming Guide,用于创建 UITabBarItem,如下所示:
- (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;
}
但是,我是一个图形菜鸟,想使用 Apple 的内置图形来制作标签栏项目。我怎么能那样做?可用图标及其名称的列表在哪里?