abellee
V2EX  ›  iOS

关于复杂的 UITableViewCell 的问题

  •  
  •   abellee · Mar 8, 2017 · 2926 views
    This topic created in 3353 days ago, the information mentioned may be changed or developed.

    我想创建一个复杂的 UITableViewCell ,就像微信朋友圈里的那种,

    包含昵称、文字、图片、时间等,按顺序从上到下排下来,

    会根据内容的不同显示 /隐藏,

    查了一些资料讲说 UITableViewCell 里手动计算尺寸比用 AutoLayout 的性能要好,

    但是这样的话,内容一多,又需要根据内容进行隐藏 /显示,就需要在设置数据的时候各种重新定位,

    这样会不会更消耗性能?

    3 replies    2017-03-09 11:27:18 +08:00
    paradoxs
        1
    paradoxs  
       Mar 8, 2017 via iPhone
    Sdautolayout
    xiubin
        2
    xiubin  
       Mar 9, 2017
    如果你的问题是:这样会不会更消耗性能?

    答案是:不会
    hdbean
        3
    hdbean  
       Mar 9, 2017
    AutoLayout 大法好
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 01:06 · PVG 09:06 · LAX 18:06 · JFK 21:06
    ♥ Do have faith in what you're doing.