开发者

Adding labels from other views to a UIView

Is there anything "wrong" or unhealthy about creating a subview of the view controller's view, assigning it to an IBOutlet UIView * of the viewcontroller, and then placing on that subview a label that is attached to the IBOutlet UILabel * of another subview of the view controller? That is, the label is @property in a custom view class, which also appears开发者_运维技巧 on screen, but that custom view is a different view than the view that contains the label from the custom class. Make sense?

It seems to work, but it seems a bit "strange" and I'm wondering if in fact it is a good idea.


I don't know how common that is, but I don't think there's anything intrinsically "wrong" with doing it that way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜