P
P
Pavel2018-12-13 12:09:27
Cocoa Touch
Pavel, 2018-12-13 12:09:27

How to unlock user interface when scrolling a table?

Good afternoon, there is a date picker, it is in a table cell, if you scroll the table up and down, and then immediately try to twist the date picker, it will not work until the table stops its animation, is it possible to somehow make it so that did they spin together and not block user clicks while scrolling?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2018-12-13
@gre4ixin

The problem (if it can be called a problem at all) is that it UITableViewdoesn't skip events UIEventwhile scrolling its subviews. Therefore, yours UIDatePickerdoes not receive any touches (events UIEvent), until the table is stopped.
There may be several solutions here:
1) Redefine the method

func hitTest(_ point: CGPoint,  with event: UIEvent?) -> UIView?
y UITableView;
2) https://stackoverflow.com/questions/16882737/scroll... ;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question