WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Project 10 Day 42 my image view for the collection view is not being displayed and the label does not show

Forums > 100 Days of Swift

First how do I add an image here? I want to show what my simulator looks like second

I followed his exact guidelines for creating a UICollectionView and adding a UImage and UIlabel in story board but for some reason when I select a picture and load it to the cell it is not displaying it. It looks like it is partially showing. I followed his x, y, width, and height exactly. Also for some reason the person prototype cell has something called content view and inside content view we have image view and name, however in his tutoital he did not have content view under his person it was directly image view and name. This would be easier if I knew how to add an image here to show. I clicked on the image icon for this textbox but it is showing http


I found the issue look for estimated size and choose none in story board. So click collection view and in size inspector click estimated size to none.


You cannot paste images into the Hacking With Swift forum. My guess is this would add tremendous costs due to storage requirements. Just a guess.

Instead, pick a free service like Imgur.com. Post your screen shots there!

Then use Markup to create a link. Here's an example:

![Rock Paper Scissors](https://i.imgur.com/abc123wxy.png)

The exclamation point indicates you're inserting a graphic. What's in the brackets is a text snip describing the link. What's in the parens is the link to your imgur.com graphic.

I think you can figure it out.



You found a solution and posted it here. This is great.

But you have one more thing to do.

PLEASE mark your answer as SOLVED. This lets others know that your problem was solved and may help them solve a similar problem in the future.


Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.