cocoa - Xcode : import folder/group -


Is it possible to import folders / groups in file instead of importing files?
Example file file :

  #import "FirstViewController.h" #import "SecondViewController.h" #import "ThirdViewController.h"   

It is possible to do so (the first-second and third-view controller in the folder) :

  #import "folder"   

Is this possible? The reason this file is very annoying to import files per file is when you have a lot of files

not , But you can import your files in the precompiled header, so that you only import them once, and they are available globally ...

Edit

Imagine your project name will be named MyApp got a precompiled header named to you MyApp-Prefix.pc H

  #import & lt; Availability & Gt; #ifndef __IPHONE_3_0 # Alert "This project uses only iPhone SDK 3.0 and later features." #endif #ifdef __OBJC__ #import & lt; UIKit / UIKit.h & gt; #import & lt; Foundation / Foundation. H & gt; / * Your import here * / #endif   

This particular header file will be automatically imported into all your files, so that you can see the #import instructions here You need to add, so you do not have to write them on all your files.

Comments