Comments (12)
Hi istep,
Could you provide some code and screenshots please?
Thanks!
from bfpaperbutton.
there is another problem.
if the button was added into a uiscrollview as a subview,
the button did not work too.
can i send the code to you by email?
from bfpaperbutton.
sure: [email protected]
from bfpaperbutton.
hi,bfeher,
the email was sent just now.please check it.
from bfpaperbutton.
I ran your code and the BFPaperButton works exactly as it should. I'm unable to reproduce your issue. Could you perhaps provide a gif or video of the issue?
from bfpaperbutton.
the ripple will not occurs until you press it for a long time.
you can compare the button and the button on the left.
the left button's ripple will occurs quickly as long as you click it.
from bfpaperbutton.
That delay, which you also noticed on UITableViewCell is caused by the ScrollView delay content touches. UITableView's do this too. Also, buttons near the bottom of the screen get a delay added by the OS to help the OS recognize when a user wants to pull up the OS menu.
from bfpaperbutton.
Add this line to your code:
mScrollView.delaysContentTouches = NO;
That should let the button tap rapidly :)
However, be warned that now if a user tries to scroll your scrollview, if their finger lands on the button the scroll view will not scroll. That is why UIScrollView delays content touches, to give scrolling precedence.
from bfpaperbutton.
great!
the line code works in uiscrollview
but it does not work for UITableViewCell
from bfpaperbutton.
This isn't an issue with UITableViewCell but with UITableView.
It is also not a problem but the expected behavior.
You can change the same property delaysContentTouches
for the table view.
This is the normal expected behavior for UIScrollView and UITableView (which are a subclass of UIScrollViews).
This is not a bug with BFPaperButton.
Any control nested in those two will have their touches delayed unless specified.
from bfpaperbutton.
i tried setting the same property delaysContentTouches for the table view. but it did not work
from bfpaperbutton.
You are correct. iOS wants you to delay touches in UITableView and UITableViewCell. It used to be a simple fix but has changed for iOS 7 and 8. It is now slightly more difficult to achieve the behavior you desire. Please see this Stack Overflow entry.
edit- I personally tested this answer and found that it works. It removes the delay on content touches! Enjoy ;)
from bfpaperbutton.
Related Issues (20)
- hi~ I have found a problem with the button HOT 11
- Fast touch up inside HOT 2
- tapCircleDiameter and different growth depending on longpress and normal touch HOT 5
- Use with Storyboard and IB?
- only really notice effects on long press HOT 8
- Swift 2.0 Version HOT 6
- How to use it with Storyboard? HOT 2
- Animations can't play when Buttons in UIScrollView HOT 3
- Run is not smooth HOT 3
- Animation on button doesn't work when button's parent ViewController is embed into a container view (i.e child viewController) HOT 4
- You have this bug HOT 3
- layoutSubviews ignores enabled property HOT 1
- bug HOT 2
- FEATURE REQUEST : Button Radius HOT 1
- Get rid of dots HOT 3
- Raised using Storyboard
- Crash iOS 9.2 below archive by xcode 10.1
- Problem : delegate for global animation
- Disabled state for raised button no longer removes shadow after tapped at least once. 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 bfpaperbutton.