Should views be created using NIB or code on the iPhone?

Is there any performance, development flaws, or advantages when developing views using Interface Builder?

+3
source share
6 answers

Often you want to use Interface Builder; There are several reasons why you will want to do this through the programming interfaces:

  • this is a more acceptable way to create user interfaces because of its simplicity and visual advantages that you cannot achieve simply with simple code.
  • iPhone , .., Apple , iPhone.

, , Interface Builder, - , - , n UIImageView - , Interface Builder. , , .

, NIBs/XIB , NIB, ( , ), . , , , NIB, NIB, , NIB, .

, - Interface Builder, , , Interface Builder.

+11

, , . - , , , ( , ).

+2

, , , iPhone. , , - . , .

GUI UIViewControllers , MVC. loadView, , , .

: GUI, loadView UIViewController.

+2

. 11 - nib * (# locales) - ( 10 ).

+1

Never look at generating NIB code with a tool. But look at the Apple Note.

Note. Although you can create an Objective-C application without using nib files, this is very rare and not recommended. Depending on your application, avoiding the use of nib files, you may need to override the large scale wireframe behavior to achieve the same results you would get with a nib file.

-1
source

Source: https://habr.com/ru/post/1710525/


All Articles