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 6089443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:06:03+00:00 2026-05-23T12:06:03+00:00

I am using a custom class very similar to the Tweet Bot info panels

  • 0

I am using a custom class very similar to the Tweet Bot info panels in my application. I have this class working perfectly when a button is tapped, however what I am trying to achieve is getting this ‘alert panel’ to show when my application finishes launching or comes from being idle.

To call this class using a standard I am using the following code;

-(IBAction) button1Tapped:(id) sender
{
    [MKInfoPanel showPanelInView:self.view 
                            type:MKInfoPanelTypeInfo 
                           title:@"Tweet Posted!" 
                        subtitle:nil 
                       hideAfter:2];
}

But I am having issues including this in my main AppDelegate.m. I keep getting an error message of ‘Property type view not found in Total_HealthAppDelegate when i use the following;

- (void)applicationWillEnterForeground:(UIApplication *)application
{

        [MKInfoPanel showPanelInView:self.view
                                type:MKInfoPanelTypeInfo 
                               title:@"Total:Health Support" 
                            subtitle:@"Welcome"
                           hideAfter:3];

}

Any advice would be great

  • 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-05-23T12:06:03+00:00Added an answer on May 23, 2026 at 12:06 pm

    Try using self.window in place of self.view when this code is inside the AppDelegate. Also be sure to include the appropriate header files and declare the class.

    However, I recommend you put this code into the viewController that first wakes up instead. Here’s one way to accomplish this.

    Set up a BOOL in NSUserDefaults called justWokeUp. Then, in the appDelegate, set it to YES when the app wakes up:

    - (void)applicationWillEnterForeground:(UIApplication *)application
    {
        NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
        [standardUserDefaults setBool:YES forKey:@"justWokeUp];
    }
    

    Now, in any viewController that might be the first to load when the app resumes, check this value to see whether you should send the alert:

    - (void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
        NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
        if ([standardUserDefaults boolForKey:@"justWokeUp"]) {
    
            [MKInfoPanel showPanelInView:self.view
                                    type:MKInfoPanelTypeInfo 
                                   title:@"Total:Health Support" 
                                subtitle:@"Welcome"
                               hideAfter:3];
    
            [standardUserDefaults setBool:NO forKey:@"justWokeUp"];
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a listbox that displays Shipment Items (custom class) that are formatted using
I've got a custom handler applied to a class (using the Policy Injection Application
Ive been using a custom class for some time like this in PS (2.0):
I'm using a custom implementation of a DynamicObject which works perfectly for my application,
I'm trying to write this custom addition class for very large integers, bigger than
I'm using Spring Batch 2.1.5. I have many jobs that are very similar between
I have the following problem / bug: I made a custom button-class (called CustomBlitButton)
I am using a custom class as the delegate and datasource on a UITableView.
I'm using a custom class that extends JFrame, but sometimes it shows nothing. I
I am having problems using my custom class with a std::map. The class dynamically

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.