search

Home  >  Q&A  >  body text

ios - UITableViewCell里init方法和layoutSubviews方法里宽度不一样

高洛峰高洛峰2773 days ago813

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:57:13

    Init only initializes a value, and dynamically adjusts the layout according to different screen sizes. You should not lay out the UI in init. Just create the view in init. Don't worry about where it is displayed. Layout it in layoutSbviews. This is the standard practice.

    reply
    0
  • Cancelreply