- (
void
)viewDidLoad {
[ super viewDidLoad ];
// 设置 UIimageView 要显示的照片
self . image_view . image = [ UIImage imageNamed : @"image" ];
// 创建一 UIToolbar
UIToolbar *toolBar = [[ UIToolbar alloc ] init ];
// 设置 toolBar 的类型
toolBar. barStyle = UIBarStyleBlackTranslucent ;
// 设置尺寸
toolBar. frame = self . view . bounds ;
// 添加到 UIImageView 中
[ self . image_view addSubview :toolBar];
[ super viewDidLoad ];
// 设置 UIimageView 要显示的照片
self . image_view . image = [ UIImage imageNamed : @"image" ];
// 创建一 UIToolbar
UIToolbar *toolBar = [[ UIToolbar alloc ] init ];
// 设置 toolBar 的类型
toolBar. barStyle = UIBarStyleBlackTranslucent ;
// 设置尺寸
toolBar. frame = self . view . bounds ;
// 添加到 UIImageView 中
[ self . image_view addSubview :toolBar];
}
