scrollView = initWithFrame:CGRectMake((size.width-w_tiao2)/2+pianyi+50/xishu, heightOut, widthOut-80/xishu,30)]; scrollView.pagingEnabled = NO; scrollView.showsHorizontalScrollIndicator = YES; scrollView.showsVerticalScrollIndicator = YES; scrollView.scrollsToTop = YES; scrollView.delegate = self; button_more= initWithFrame:CGRectMake(10+dW*2, buttonY, buttonW, buttonH)]; ; ; ; forState:UIControlStateNormal]; forState:UIControlStateSelected]; ; ; scrollView.contentSize = CGSizeMake(dW*7, 112/xishu); ``` 上面是我的代码,问题是button的图片死活看不到,能看到scrollview的滚动条,如果加上button_more.backgroundColor=;就能看到scrollview中有一块红色的地方,由此我判断button是加载进去了,只是他的图片看不到,title也看不到,但是设置背景颜色可以看到button。。。相关代码都在这了,求大神解救啊!!!!!:11::11::11: