At first, I'm very very bad at Obj-C (don't like the syntax), but now with Swift I love iPhone developing :D
Here is my problem, I try to work with a Obj-C Library (xmppframework), but when I try to initialize the XMPPRoster the required Method isn't available...
Objective-C usage:
xmppRosterStorage = [[XMPPRosterCoreDataStorage alloc] initWithInMemoryStore];
xmppRoster = [[XMPPRoster alloc] initWithRosterStorage:xmppRosterStorage];
But within my Swift Class the Method "initWithRosterStorage" isn't available :(
Swift:
var jabberRosterStorage: XMPPCoreDataStorage = XMPPCoreDataStorage()
var jabberRoster:XMPPRoster = XMPPRoster(....)
XMPPRoster.m:
- (id)initWithRosterStorage:(id <XMPPRosterStorage>)storage
{
return [self initWithRosterStorage:storage dispatchQueue:NULL];
}
Maybe Swift has problem with (id) because in Swift I think it's now AnyObject