I have view. Make custom view and add on view.

[self.view addSubview:self.customView];

Then i added scrollView on customView:

[self.customView addSubview: self.scrollView];

Then i added some label on scrollView:

[self.scrollView addSubview: lbl];
[self.scrollView addSubview: lbl1];
[self.scrollView addSubview: lbl2];

And when i scroll i saw on my VIEW border of label. What to do with this? Thx for help!

有帮助吗?

解决方案

If you put a breakpoint in the scrollView's delegate method -scrollViewDidScroll: you can use the console command po [self.view recursiveDescription] to check what the frames of your views are and see if the problem is in the label frames or in other properties of your view's hierarchy.

p.s. the next time you ask a question spend a little bit of time improving it: it's not really understandable.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top