更新时间:2023-11-18 21:59:04
UIView *vieww =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
[vieww addSubview:yourBtn1];
[vieww addSubview:yourBtn2];
[self.navigationController.navigationBar addSubview:vieww];
如果你想删除yourButtonView,那么make是全局对象;
And if you want to remove yourButtonView then make is global object;
in .h
UIView *vieww;
和 .m
-(void)viewWillDisappear:(BOOL)animated
{
[vieww removeFromSuperview];
}
或者按照此更多链接