Convert Interface Builder Code to Xcode

Is it true that everything you do in Interface Builder can be done programmatically? If your project uses Interface Builder to create a graphical interface, can this code be converted to native Xcode and inserted into the project?

+3
source share
3 answers

It is true that everything you can do in Interface Builder you can do programmatically. However, IB does not generate code, so there is nothing that could "convert" to the source code for your project.

+3
source

Builder - - . .xib ( "nibs" ) , , :

  • : XML. XML (, "" ) .
  • "" XIB Objective-C , , , Xcode ( , ).
  • , xib, , xib.
+1

I wrote a utility to convert files .xibto code. It is still experimental, but should do most of the grunt work by converting to code:

https://github.com/Raizlabs/Eject

You can try it online:

https://eject.herokuapp.com/

+1
source

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


All Articles