hi all, we're getting up to speed on swift, still early days!
we r having a problem on this (datasource) func, at first line of code when the func is invoked :
IGFlowLayoutViewCell *cell = [flowLayoutView dequeueReusableCellWithIdentifier:@"CELL"];
we tried:
var cell = flowLayoutView.dequeueReusableCellWithIdentifier("CELL") as! IGFlowLayoutViewCell
but that crashes the app at runtime.
any help would be greatly appreciated.
Swift method / signature)
func flowLayoutView(flowLayoutView: IGFlowLayoutView!, cellAtIndex index: Int) -> IGFlowLayoutViewCell! {
.....
}
Hi Angus,
I'd be happy to help.
Your code does look correct. I've attached a sample that does just that.
Let me know if this helps.
Thanks,
-SteveZ
Actually, i just compared the code again, and noticed the difference. You need to put an ! after IGFlowLayoutViewCell:
var cell = flowLayoutView.dequeueReusableCellWithIdentifier("Cell") as! IGFlowLayoutViewCell!
hi Steve,
I still can't get this IG project to build using Swift (via the sample you provided). Could you please take a look at it (attached) and let me know ?
cheers
angus
I downloaded my project from the forums, and it worked fine. However the one you posted did not work. It was looking for a binding header that didn't exist.
Once i cleaned up the settings it built fine again.
I've attached your modified project.
Hope this helps,
Hey Angus,
Actually it looks like it might be something with the version created by our build machine.
We are testing it out now, and will keep you posted.
Thanks!
We've pushed a new Service Release today, that addresses the problem.
Thanks for bringing it to our attention.
thanks Steve. where can I pick up this new release build ?