Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDatePicker produces feedback after scrolling is finished. Explanation required

So I have UIDatePicker initialized programmatically. It has some subviews with NSLayoutConstraints. Also it has a custom text color setValue(textColor, forKey:"textColor"). It is positioned in superview with the help of NSLayoutConstraints.

Every time it stops scrolling some text is produced in Debug area:

<_UIFeedbackRetargetBehavior: 0x60000011b750: prepared=0> is being deactivated more times that it'd been activated, this will raise soon!

So I'm a bit worried. Google finds nothing... Does anybody have an explanation?

Xcode 8. Swift 3. iPhone SE simulator.

like image 389
iWheelBuy Avatar asked Oct 19 '16 08:10

iWheelBuy


1 Answers

If you still encounter this issue.

What helped for me was making the UIPickerView a class member (not a variable in method's context).

Or you could also have it created in the storyboard/.xib file and link it as an IBOutlet to your class.

like image 146
Lepidopteron Avatar answered Nov 02 '22 23:11

Lepidopteron