当我尝试为UIBarButtonItem使用图像时,没有显示文本。有没有办法同时显示文本和图像? 最佳答案 您可以使用包含图像和文本的自定义View来初始化UIBarButtonItem。这是一个使用UIButton的示例。UIImage*chatImage=[UIImageimageNamed:@"08-chat.png"];UIButton*chatButton=[UIButtonbuttonWithType:UIButtonTypeCustom];[chatButtonsetBackgroundImage:chatImagef