Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top