search

Home  >  Q&A  >  body text

ios - 若程序启动时需要读取本地文件的数据,这个时候造成了卡顿,解决办法是?

1.若程序启动时需要读取本地文件的数据,这个时候造成了卡顿,解决办法是?
2.storyboard和xib的区别,在开发4-6人的iOS开发团队应如何管理界面?
3.tableViewCell中包含一张图片和一段长度不定的文字,如何制作内容变化的UITableView(宽度要适应各种机型,不考虑横屏)。

几个开发中中的问题,我的答案是:
1.在子线程中执行读取文件数据。
2.xib是轻量级的,用于描述局部的UI界面;storyboard是重量级的,用于描述整个程序的多个界面,并且能展示多个界面间的跳转关系。团队开发建议使用GitHub。(管理界面?我不太明白意思)
3.需要将UItableViewCell的高度设置为自定义。

欢迎补充~~~~

黄舟黄舟2769 days ago447

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:07:12

    1. Asynchronous thread reading
    2. The main difference between xib and StoryBoard is whether it can describe the transition relationship between ViewControllers. There are differences in individual functions: for example, the Prototype Cell of tableView can only be used in StoryBoard and is used by team development StoryBoard is prone to Git branch merge conflicts. To specify the StoryBoard files that everyone can move, you can use the StoryBoard reference function of iOS9. 3. There are two implementation ideas. One is to use the code to calculate the height of the Label and adjust the height in the proxy method. , the second is to use the automatic layout automatic height Cell provided by iOS8 and above, set the constraints, and set the height to automatic,

    reply
    0
  • Cancelreply