Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 按钮不出现在滚动视图中_Iphone_Uiscrollview_Uibutton - Fatal编程技术网

Iphone 按钮不出现在滚动视图中

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

我正在为scrollview编写代码,并在其上添加按钮,但按钮未出现在scrollview中。 我的代码

请给我一些建议。

也许:

UIButton*tableProduct1Button= [ui]按钮 按钮类型:UIButtonTypeCustom]


试着制作一个带有某种颜色的圆形矩形按钮,然后看看你是否能看到按钮,或者检查框架。或者尝试为高亮显示状态设置图像

[tableProduct1Button setImage:image1 forState:UIControlStateHighlighted];
[tableProduct1Button setImage:image1 forState:UIControlStateHighlighted];