【发布时间】:2013-06-14 08:32:00
【问题描述】:
我有意见。制作自定义视图并添加视图。
[self.view addSubview:self.customView];
然后我在 customView 上添加了 scrollView:
[self.customView addSubview: self.scrollView];
然后我在scrollView上添加了一些标签:
[self.scrollView addSubview: lbl];
[self.scrollView addSubview: lbl1];
[self.scrollView addSubview: lbl2];
当我滚动时,我看到了标签的 VIEW 边框。该怎么办? 谢谢帮忙!
【问题讨论】:
-
当你滚动你看到了什么??
-
UILabel *label = [[UILabel alloc] initWithFrame:frame]; label.text=@"aaa"; [self.scrollView addSubview: 标签];然后当我滚动时,我看到了一些白线。我在我的 suctom 视图角半径中制作。在角落里我看到了
标签: ios objective-c uiscrollview uilabel custom-view