Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 iOS 编写一个应用程序。您认为哪种方法更好:一次创建表(创建表 foo)和所有内容,还是仅在必要时创建表(仅当用户转到使用该表的某个视图时)?我的原型仅在需要时才创建表格。为了开始开发我的测试版,我必须决定我是否做得对。
除非有充分的理由,否则请事先创建表格和结构,并让应用根据需要更新这些表格。动态创建表会使任务过于复杂。