jverdi / JVFloatLabeledTextField

UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users
MIT License
7.19k stars 732 forks source link

Warnings - This block declaration is not a prototype #184

Closed anirudhamahale closed 6 years ago

anirudhamahale commented 6 years ago

I am getting this strange warning "This block declaration is not a prototype" in version 1.2.1, using the Swift 4 and Xcode 9.2 (9C40b). Getting it at 4 places: 1) JVFloatLabeledTextField.m line number 133, 155 2) JVFloatLabeledTextView.m line number 238, 265

screen shot 2017-12-13 at 3 46 45 pm

biren9 commented 6 years ago

This is a change of the Xcode 9 compiler. You have to give a return type such void

void (^showBlock)(void) = ^{
...
};

https://stackoverflow.com/questions/44473146/this-function-declaration-is-not-a-prototype-warning-in-xcode-9

jverdi commented 6 years ago

This has since been fixed.