I want to display as many collectionViewCells
with buttons
as there are strings in my array. but when I start the simulator there is just the backgroun
Ideas:
print
statements inside your cellForItemAtIndexPath
function to see if it's being called ever.Array
is actually a type in Swift. Using that as your variable name might be messing with the logic somehow. Rename it to array
(lowercase). I believe this is best practice for variable names anyway.cellForItemAtIndexPath
, such as changing the background color. If that works, maybe there's just something wrong with what you're doing with tags.