Comments (23)
Please provide more context...
from ampoptip.
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.
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.
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.
Sorry i forgot to say:
By Nothing, i mean the whole popTip is not showed up.
from ampoptip.
Can you log the popTip's frame once you presented it?
from ampoptip.
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.
Yeah, it's probably autolayout then. I reckon it's guessing the custom view's frame before autolayout did his thing.
from ampoptip.
Ok then, Do you have a quick fix for now or something else ?
from ampoptip.
Checkout latest commit. It's a wild guess, but who dares wins.
from ampoptip.
Ok thanks, I will try it now.
from ampoptip.
Sorry, but it didn't work.
from ampoptip.
Can you reproduce the issue in the sample project by any chance?
from ampoptip.
yes I can try, i will try it now.
from ampoptip.
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.
Dunno, if you want you can send it at [redacted]
from ampoptip.
I just send you the popTipDemo modified :) on [redacted]
from ampoptip.
Any news on that bug ? :)
from ampoptip.
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.
Ok thanks !
let me now if you find a solution :)
from ampoptip.
set poptip.translatesAutoresizingMaskIntoConstraints = false works for me
from ampoptip.
Hi all. Sorry for the delay. Can you test again the issue now that #66 is merged in?
from ampoptip.
This should be fixed on master. Reopen if you need further assistance.
from ampoptip.
Related Issues (20)
- shouldDismissOnSwipeOutside is not working
- UICollectionViewCell POP HOT 1
- I can't set the borderWidth and the cornerRadius HOT 2
- Top border gets cut-out HOT 1
- Failed github "andreamazz/AMPopTip" ~> 4.5.3 Carthage update in Xcode 13 beta 5 HOT 2
- Anyone having issues building with Xcode Cloud? HOT 2
- Carthage Update for XCODE 13 RC failed. HOT 2
- XCode 13 release build and archive issue HOT 3
- Xcode 13 build error HOT 6
- Xcode 13 Swift 5.5 HOT 11
- Button events do not work
- Ambiguous use of 'cornerRadius' HOT 2
- Unable to pod install 4.6.1 HOT 1
- It's hard to center Horizontally the popover HOT 1
- Crashes while launching the app HOT 2
- If a PopTip is visible and we hide that Poptip and click show it again, the Poptip won't show. HOT 2
- I have a similar framework,(#^.^#)
- Support for building with visionOS SDK
- When the device rotates, the position becomes incorrect
- privacy manifest addition if required HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ampoptip.