Should views be created using NIBs or code in iPhone?

前端 未结 6 1497
囚心锁ツ
囚心锁ツ 2021-02-06 18:04

Are there any performance, development drawbacks or advantages when designing views using Interface Builder?

6条回答
  •  误落风尘
    2021-02-06 18:44

    Never look at the Code generation of NIB using the tool. But look at the Note by apple.

    Note: Although you can create an Objective-C application without using nib files, doing so is very rare and not recommended. Depending on your application, avoiding the use of nib files can involve overriding large amounts of framework behavior to achieve the same results you would get using a nib file.

提交回复
热议问题