Difference between addSubview and insertSubview in UIView class

后端 未结 4 661
情书的邮戳
情书的邮戳 2020-12-02 11:16

What is the difference between addSubview and insertSubView methods when a view is added programmatically?

4条回答
  •  难免孤独
    2020-12-02 11:25

    I don't think there is a difference. addSubview: is simple a convenient method for

    [view insertSubview:aView atIndex:[view.subviews count]]
    

提交回复
热议问题