它适用于没有标签栏但没有标签栏的ViewController。此外,这是Storyboard中的第一个ViewController。UIImage*bookmarkImage=[UIImageimageNamed:@"bookmark"];//createthebuttonandassigntheimageUIButton*bookmarkButton=[UIButtonbuttonWithType:UIButtonTypeCustom];//settheframeofthebuttontothesizeoftheimage(seenotebelow)bookmarkButton.fr