想知道是否有人知道如何实现底部工具栏中的箭头,如下所示?如果有人能够让我对此有所了解,将会非常感激。我看过很多带有箭头的应用程序来浏览页面,并且似乎无法在XCode中找到它们。见下文......iOS应用程序工具栏底部的箭头
THX :)
想知道是否有人知道如何实现底部工具栏中的箭头,如下所示?如果有人能够让我对此有所了解,将会非常感激。我看过很多带有箭头的应用程序来浏览页面,并且似乎无法在XCode中找到它们。见下文......iOS应用程序工具栏底部的箭头
THX :)
只需设置一个UIToolbar并将其安装这两个图像(我给你两个图像标准和视网膜存档链接):link
//Creating UIToolbar
toolBar = [[UIToolbar alloc]init];
toolBar.frame = CGRectMake(//set some frame);
toolBar.barStyle = UIBarStyleBlackOpaque;
[toolBar sizeToFit];
//Creating buttons
UIBarButtonItem *prev = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"previous.png"] style:UIBarButtonItemStylePlain target:self action:@selector(myaction:)] autorelease];
UIBarButtonItem *next = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"next.png"] style:UIBarButtonItemStylePlain target:self action:@selector(myaction:)] autorelease];
//Creating the array with the buttons
NSArray *items = [NSArray arrayWithObjects:prev,next, nil];
//Assigning the array to the toolbar
[toolBar setItems:items];
[self.view addSubview:toolBar];
[toolBar release];
你完成了!
我猜这些箭头进行定制,而苹果Safari浏览器,图片库等制成
我觉得你可以让那些在油漆如果你没有沿着Photoshop的东西。
你自己做了这些吗? – Masterminder
我从开放源码的iOS GUI中取得了它们。 – Phillip
感谢哥们!非常感谢。 – Masterminder