In my Swift app, I need to access a class method called weibo() as below from Objective-C
@interface Weibo : NSObject + (Weibo*)weibo; @end I have configured the bridging header and tried the following statement
let w = Weibo.weibo() as Weibo It doesn't work.
UPDATE: I have forked the repo and fixed this issue as below.
let w = Weibo.getWeibo() as Weibo // the method has been changed. The reason why it didn't work because Swift treats + (Weibo*)weibo; as a convenience constructor. Since weibo is same as the Class name Weibo although the case is different. I need to change the name to getWeibo to fix this issue to support Swift.
Thanks for every one contributing to this answer. Special thanks to @Anil and @David
Jake
Weibo.weibo()