【发布时间】:2010-01-26 13:08:21
【问题描述】:
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 的内置图形用于标签栏项目。我怎么能那样做?可用图标及其名称的列表在哪里?
【问题讨论】:
-
我不了解苹果图形,但我有很多 UITabBarItem 图片,如果您想给我您的电子邮件地址,我会非常乐意将它们发送给您。
标签: iphone uitabbarcontroller uitabbaritem