cbess/AutoScrollLabel

Creation with just init

Closed this issue · 1 comments

JW97 commented

When I'm creating the instances of the labels, theres no way for me to know the frames of the labels and thus I can't use initWithFrame. Is there a way to add an init method? After looking through, I'm guessing there'd be some issues with setting both the scroll view and label frames.

If I understand you correctly, note that the [initWithFrame:] works as expected, but it is for the entire label. So when it is not scrolling the label will be that size, but when its clipped, then that will be the "frame" of the scrolling labels. Which means that it works as you might expect, for a view that has subviews.