swiftsdwebimage

why can't I get SDWebImage working with swift?


At build time, it returns an error on this line

typedef void(^SDWebImageNoParamsBlock)(voidvoid);

The error that Xcode gives me is:

A parameter list without types is only allowed in a function definition

project file with error

thanks all :)


Solution

  • It should be

    typedef void(^SDWebImageNoParamsBlock)(void);
    

    This a screenshot from the file you have may be you have edited it mistakenly when typing somehow

    enter image description here