Iphone 按钮不出现在滚动视图中
我正在为scrollview编写代码,并在其上添加按钮,但按钮未出现在scrollview中。 我的代码 请给我一些建议。也许: UIButton*tableProduct1Button= [ui]按钮 按钮类型:UIButtonTypeCustom]Iphone 按钮不出现在滚动视图中,iphone,uiscrollview,uibutton,Iphone,Uiscrollview,Uibutton,我正在为scrollview编写代码,并在其上添加按钮,但按钮未出现在scrollview中。 我的代码 请给我一些建议。也许: UIButton*tableProduct1Button= [ui]按钮 按钮类型:UIButtonTypeCustom] 试着制作一个带有某种颜色的圆形矩形按钮,然后看看你是否能看到按钮,或者检查框架。或者尝试为高亮显示状态设置图像 [tableProduct1Button setImage:image1 forState:UIControlStateHighlig
试着制作一个带有某种颜色的圆形矩形按钮,然后看看你是否能看到按钮,或者检查框架。或者尝试为高亮显示状态设置图像
[tableProduct1Button setImage:image1 forState:UIControlStateHighlighted];
[tableProduct1Button setImage:image1 forState:UIControlStateHighlighted];