Skyscanner / SkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Apache License 2.0
4.09k stars 540 forks source link

Crash on titleFormatter property #230

Closed Dalein closed 5 years ago

Dalein commented 5 years ago

Report

What did you do?

Set block to txtField.titleFormatter

What did you expect to happen?

configuration of placeholder text format

What happened instead?

Crash on line txtField.titleFormatter = { (text: String) in return text } Thread 1: EXC_BAD_ACCESS (code=257, address=0x1a1b723bec9)

Environment

Xcode Version: 9.4.1 (9F2000) SkyFloatingLabelTextField Version: 3.5.1 Deployment Target: iOS 11.4 Base SDK: iOS 10.0 Method of Integration: CocoaPods

k0nserv commented 5 years ago

Is this reproducible in a barebones project? Can you attach an example project if so?

Dalein commented 5 years ago

Sorry, it was my mistake. I incorrectly connected IBOutlets.