I am getting the error
unrecognized selector sent to instance
Which ok should have something to do with
let nibName=UINib(nibName: "bankCollectionViewCell", bundle:nil)
self.bankCollection.registerNib(nibName, forCellWithReuseIdentifier: "selectBank")
let cell = bankCollection.dequeueReusableCellWithReuseIdentifier("selectBank", forIndexPath: indexPath) as! bankCollectionViewCell
let cell =
bankCollection.dequeueReusableCellWithReuseIdentifier("selectBank",
forIndexPath: indexPath) as! bankCollectionViewCell
Which - if it was - then I could perhaps deal with it. But- the problem does not exist when I run the App in the simulator and choose iphone5. It only happens when I choose iphone 6 or ipad. So the cell is named ok.
This leads me to think that the code itself is fine - which then leads me to think - what else could be wrong. I cannot fix code that is not wrong - and yet it doesnt work.
The line of code that is highlit after the error is the above one -
the message given is:
[__NSCFString zIndex]: unrecognized selector sent to instance 0x7fd760cc4740
From the trace
could not dequeue a view of kind: %@ with identifier %@ - must register a nib or a class for the identifier or connect a prototype cell in a storyboard"
Which AHA you say the nib has to be registered - and yet it is (if I use the iphone 5 simulator) And no I dont have any special code to select different devices.
And again - this code works in the iphone5 simulator but not 6.
further to the above I have found that if I edit the story board and make the cell size larger - then I have some success. However I am now facing the issue that as soon as I scroll - the App crashes - same sort of error.
Reading around - I am not sure what is wrong - some sort of memory allocation it seems - but I am not sure what or how