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

  • SEARCH
  • Home
  • 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 9309525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:53:16+00:00 2026-06-19T00:53:16+00:00

I am making an app in which a view controller needs to dismiss a

  • 0

I am making an app in which a view controller needs to dismiss a UIAlertView when the user presses the home button. Therefore I need to do this through the app delegate. This view controller’s class also needs the app delegate for many other things, so I have a #import in its header file. Up until now I have been using @class in the app delegate for something else, but now I need a #import so that I can call the appropriate method on the view controller. How do I avoid a #import loop? Is there another way of going about this?

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-19T00:53:18+00:00Added an answer on June 19, 2026 at 12:53 am

    Unless you actually need the full definition in the header, use @class in the .h file, and #import in the .m file where you actually call the method.

    The only time you really need to use #import in a header file is if the imported header defines your superclass.

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

Sidebar

Related Questions

Hi i'm making an app which need to get user's gmail account contact list
I am making an app in which on one of the view I want
I am making an app which contains fragments within tabs.In this whenever I try
I'm making an app which has a flow roughly as below: User starts on
I am making an app which basically presents data (from plist) to user in
I'm making an app that needs to present the user with a way to
I'm making an iPhone app in which the user can do gestures (left and
I am making an app in which i am using view based application. My
i m making APP which do image proceesing using java SE.i want to check
Iam making an app which has one index.php file. I also have these other

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.