ios - Error for NIMutableTableViewModel `AnyClass does not conform to NITableViewModelDelegate` -
in objc code like
self.tablemodel = [[nimutabletableviewmodel alloc] initwithdelegate:(id)[nicellfactory class]];
in swift
self.tablemodel = nimutabletableviewmodel(delegate:nicellfactory.classforcoder())
in swift, gives me error anyclass not conform nitableviewmodeldelegate
. in fact class nicellfactory doesn't , can't conform protocol nitableviewmodeldelegate explicitly.
is there alternate way ?
guys want solution can see issue details https://github.com/jverkoey/nimbus/issues/577
and swift port https://github.com/nimbuskit/swift
relevant code here: tablecellfactory.swift
ios swift nimbus nimbus-ios
No comments:
Post a Comment