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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:44:01+00:00 2026-06-16T13:44:01+00:00

I am trying to implement an alert/notification bar that will appear at the bottom

  • 0

I am trying to implement an alert/notification bar that will appear at the bottom of the page, and when clicked will scroll up and cover the entire screen (just like Kayak or PageOnce apps show it). Here’s how it looks right now (Have uploaded the images at below URLs):

Image showing alerts bar at the bottom
http://www.anony.ws/hLe

Alerts bar opened up
http://www.anony.ws/hLl

It works but not completely. One thing, the alert view is not able to cover the navigation bar (alert frame’s origin y is 0 in the attached screenshot for opened up view). If I make the frame’s y negative to go further up, the view goes behind the navigation bar. How can I make it work so that the alerts view covers the entire screen (including the navigation bar).

Here’s what I have done:

  1. In the “Member Center” view controller, on viewDidLoad, I am creating a new view (my AlertView), changing it’s frame to show up at the bottom and then adding it as a subview to current view:

    CGFloat alertBarHeight = 25;
    CGRect frame = self.view.frame;
    frame.origin.y = frame.size.height - alertBarHeight;
    AlertsView *av = [[AlertsView alloc] initWithFrame:frame withController:self height:alertBarHeight]; // Its a custom init method that just stores a reference to the invoking controller
    [self.view addSubview:av];
    
  2. My show/hide code is in AlertsView.m and looks like this:

    - (void) showOrHideAlerts:(id)sender
    {
    if (self.isOpen)
    {
        // Close the alerts view
        [UIView animateWithDuration:0.4 delay:0 options:UIViewAnimationOptionCurveEaseOut
        animations:^{
            CGRect frame = self.frame;
            frame.origin.y = self.invokingController.view.frame.size.height - self.barHeight;
            self.frame = frame;
        }
        completion:^(BOOL finished)
        {
             self.isOpen = NO;
        }];
    }
    else
    {
        // Show the alerts view
        [UIView animateWithDuration:0.4 delay:0 options:UIViewAnimationOptionCurveEaseOut
        animations:^{
            CGRect frame = self.frame;
            frame.origin.y = 0;// - [self.invokingController.navigationController navigationBar].frame.size.height;
            //frame.origin.y = 20;
            self.frame = frame;
        }
        completion:^(BOOL finished)
        {
             self.isOpen = YES;
        }];
    
    }
    }
    

I feel that I am not implementing it correctly. Please guide me on what’s the best way to implement such a feature.

  • 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-16T13:44:02+00:00Added an answer on June 16, 2026 at 1:44 pm

    Add your alert view to navigation controller view as below and not in the current view:

    AlertsView *av = [[AlertsView alloc] initWithFrame:frame withController:self height:alertBarHeight]; // Its a custom init method that just stores a reference to the invoking controller
    
    [self.navigationController.view addSubview:av];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement an Android app that needs to alarm (or to alert)
I am trying to implement a function on jquery datatable, that returns the 1st
Trying to implement a simple notification system based on private pub ( something like
Am trying to implement a Java program which sends an Apple Push Notification to
I am trying to implement a method based on Cocoa's - (void) alertDidEnd:(NSAlert *)alert
trying to implement the following but its not working <script> function loadmap(lat,lng) { //alert(lat,lang);
I'm trying to implement a system of retrying ajax requests that fail for a
i m trying to implement this thing , that when ever a person opens
I am trying to implement this plugin Phonegap system notification . I am calling
i'm trying to implement push notification in my application, for this i tried to

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.