ios - UILabel and UIScrollView and CustomView -


i have view. make custom view , add on view.

[self.view addsubview:self.customview]; 

then added scrollview on customview:

[self.customview addsubview: self.scrollview]; 

then added label on scrollview:

[self.scrollview addsubview: lbl]; [self.scrollview addsubview: lbl1]; [self.scrollview addsubview: lbl2]; 

and when scroll saw on view border of label. this? thx help!

if put breakpoint in scrollview's delegate method -scrollviewdidscroll: can use console command po [self.view recursivedescription] check frames of views , see if problem in label frames or in other properties of view's hierarchy.

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


Comments