Git Product home page Git Product logo

Comments (23)

andreamazz avatar andreamazz commented on August 15, 2024

Please provide more context...

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Hi,
I have also a problem with a custom view. When calling showCustomView, nothing is showed up on the screen. I used AutoLayout for the custom view, this why a post a message here.

I am trying to show an PopTip with custom view after selecting a cell of a UICollectionView, but nothing is showed up.
What information do you need for debugging ?
(Sorry for my bad english.)

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

By nothing you mean the content or the whole popTip? If you don't see the bubble it may be due to wrong coordinates passed in the fromFrame param.
Can you post some of the code you are using?

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Here the code i use:
let convertRect = cell.convertRect(cell.bounds, toView: calendar)
popTip.showCustomView(dayPeriodView, direction: .Down, inView: calendar, fromFrame: convertRect)

When calling showText like this (for testing)
popTip.showText("Test", direction: .Down, maxWidth: 100, inView: calendar, fromFrame: convertRect)
everyThing is showing fine and the popTip is at the right place.

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Sorry i forgot to say:
By Nothing, i mean the whole popTip is not showed up.

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Can you log the popTip's frame once you presented it?

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Yes, it has a frame of (0,0,0,0)
I try to place a frame (for test) like this
popTip.frame = dayPeriodView.frame
but it didn't work as well.

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Yeah, it's probably autolayout then. I reckon it's guessing the custom view's frame before autolayout did his thing.

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Ok then, Do you have a quick fix for now or something else ?

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Checkout latest commit. It's a wild guess, but who dares wins.

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Ok thanks, I will try it now.

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Sorry, but it didn't work.

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Can you reproduce the issue in the sample project by any chance?

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

yes I can try, i will try it now.

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

So I can reproduce it by adding my custom view in your sample project.
Dumb question: Can I give it to you like that? if yes, how do we proceed ?

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Dunno, if you want you can send it at [redacted]

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

I just send you the popTipDemo modified :) on [redacted]

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Any news on that bug ? :)

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Yeah, I figured out what's breaking stuff (layoutSubviews gets convulsively called), but I still need to figure out how to stop the madness. In the meantime you can ditch autolayout for that view (there's not much reason to use it for a simple view that does not need to scale)

from ampoptip.

erdem-inan avatar erdem-inan commented on August 15, 2024

Ok thanks !
let me now if you find a solution :)

from ampoptip.

songjisj avatar songjisj commented on August 15, 2024

set poptip.translatesAutoresizingMaskIntoConstraints = false works for me

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

Hi all. Sorry for the delay. Can you test again the issue now that #66 is merged in?

from ampoptip.

andreamazz avatar andreamazz commented on August 15, 2024

This should be fixed on master. Reopen if you need further assistance.

from ampoptip.

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.