Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:13:58+00:00 2026-06-13T14:13:58+00:00

Hi I am developing iphone/ipad Applications. I took one header.h and import all ViewControllers

  • 0

Hi I am developing iphone/ipad Applications. I took one header.h and import all ViewControllers importing in that header.h. Then i just import header.h in all classes.

Like header.h contains

#import "loginViewController.h"

#import "signupviewController.h"

and i have imported #import header.h in all necessary view-controllers.

if i done like this, any memory issues occurred or not?

I know, in C language, if we done like above, all unnecessary code have to be included, What about in objective-c?

I googled, but i didn’t find the required answer.

please tell any one.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:13:59+00:00Added an answer on June 13, 2026 at 2:13 pm

    #import keeps track of which headers have already been included and is ignored if a header is imported more than once in a compilation unit.

    This makes it unnecessary to use header guards.

    The #import line is only replaced by the contents of name file for the first time it is encountered.

    The bottom line is just use #import in Objective-C and don’t worry if you are importing headers more than once.
    #import ensures that a file is only ever included once so that you never have a problem with recursive includes. But that is not the same case with #include.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an app for iphone/ipad that I have some problems with. I
I am developing a website that will display videos recorded on an iPhone/iPad but
I am developing a iphone/ipad app. Problem is that when i change the orientation
I am developing iPhone application and In that application I've one TableViewController , and
I am developing an app that runs on both ipad/iphone, so for ipad I
I've just started learning Obj-C and the Cocoa-Touch framework for developing iPhone and iPad
I'm just in the planning phase of developing my iPhone/iPad/Android app. Basically the app
develop android apps that should support iphone,ipad,android.is there any way for developing this kind
I'm currently developing an iOS application (iPad and iPhone) that uses OpenGL ES 1.0
I'm on developing iphone app that uses backend web service(django). To login the web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.