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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:57:06+00:00 2026-05-24T13:57:06+00:00

I have a class that shows messages on views for a few seconds then

  • 0

I have a class that shows messages on views for a few seconds then vanishes. When I would like to show a message on a viewController I simply create the message object based on that class and fire that object. Something like:

myMessageClass *message = [[myMessageClass alloc] init];
[self.view addSubview:message];
[message release];
[message showText:@"Hello world"];

but now I am using this message class on a UITableViewController class. How do I show the message on top of the table, without being tied to the table itself.

I have tried to add the view like this:

[self.tableView addSubview:message];

but the message will move if the table moves. I just have to have the message in a fixed position (no, the table header or footer has no enough height to show the message object]. No, I don’t want to use an alertView.

Is there an Apple blessed way to do that?

  • 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-24T13:57:07+00:00Added an answer on May 24, 2026 at 1:57 pm

    Check out http://code.google.com/p/toast-notifications-ios/ . This sounds like the equivalent of an Android Toast.

    Of course you know that you could make your life a bit easier by using a regular UIViewController subclass with a UITableView and set it as a data source/delegate. Short of this, in a UITableViewController class, UITableView = View so you are going to have a rough time. The only way I can think of is to respond to scrolling movements in the view using the delegate methods, ie -(void)scrollViewDidEndDecelerating.

    For example:

    -(void)scrollViewDidEndDecelerating: (UIScrollView *)scrollView {
        CGFloat offset = scrollView.contentOffset.y;
        self.message.frame = CGRectMake(self.message.frame.origin.x,self.message.frame.origin.y + offset,self.message.frame.size.width,self.message.frame.size.height);
    }
    

    This may not be exactly right but along the lines of what you need probably.

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

Sidebar

Related Questions

I have a class that is marked with DataContract attributes and I would like
I have a class that I would like to use in a scala.collection.mutable.PriorityQueue, but
I have a dialog that I show with <class>.ShowDialog() . It has an OK
I have a class that maps incoming messages to matching readers based on the
i want to make message view show all other messages that led up to
I have a model class that uses a custom validator as shown in following
I have class that represents users. Users are divided into two groups with different
I have class A such that: class A { static int i; A(); f1();
I have a class that implements the IDisposable interface. I am using a webclient
I have a class that requires a specific method to be called before being

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.