GithubHelp home page GithubHelp logo

Comments (5)

KrauseFx avatar KrauseFx commented on May 7, 2024

Which view controller do you pass to the message class? It works fine in my projects.
There was already a pull request that should add a workaround: #3

from tsmessages.

rispie avatar rispie commented on May 7, 2024

Turns out I was passing the wrong view controller. However there's still a slight error when I pass self.navigationController. See the screenshot below:

Screen Shot 2013-04-19 at 10 28 07

When I remove these lines from TSMessage.m

if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
{
verticalOffset += [UIApplication sharedApplication].statusBarFrame.size.height;
}

It works though.

from tsmessages.

KrauseFx avatar KrauseFx commented on May 7, 2024

It's related to this pull request commit: rileytestut@2c05670
I'll look into it, in the meantime you can also just subclass TSMessage and implement + (CGFloat)navigationbarBottomOfViewController:(UIViewController *)viewController to correct the value. Sorry about the troubles.
Is the status bar hidden in your app? Maybe that's the reason for the 20px

from tsmessages.

rispie avatar rispie commented on May 7, 2024

No, the status bar is not hidden in my app. Thanks for looking into it!

from tsmessages.

KrauseFx avatar KrauseFx commented on May 7, 2024

I just tried the following

  • Added it to a UITableViewController: It does not scroll with the tableView, it stays on the top as expected
  • Added it to the navigation controller with a regular navigation bar and the status bar shown: Position as expected.
  • Added it to the navigation controller with the In-Call Status bar: Position as expected

I tested it with the latest code from develop, I'm going to merge that back to master now.

from tsmessages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.