Unable to add cell to UICollectionView using Interface Builder - swift

I have a UICollectionView with horizontal scrolling,i can't add a UICollectionViewCell to my class.

After adding a Button to the cell , I was able to add a reference to the button in the cell.
My conception to add reference to an empty cell was wrong.

Related

Custom UIbutton inside a nested UICollectionView cell does not get fired

I have a main UICollectionView which contains a custom header and a custom cell. Inside the custom cell I have another UICollectionView with a custom cell in which there are three buttons (inside a stackView) that has added target as a selector function to it for .touchUpInside but when I touch the button it does not fire the selector function at all. didSelectItemAt function gets called on parent UICollectionView but not the nested one. If I comment out the parent didSelectItemAt nothing is called.
I have also set the nested collectionView delegate. Any idea what I should do to make it work would be much appreciated.
(I don't use storyboard)
Check that view.isUserInteractionEnabled is true for the parent view.
Try to disable your parent collection view's .delaysContentTouches, and if that doesn't work, try to override hitTest all the way down at your button's view level hierarchy and see if the touch reaches it.

Expanding a UIView in a UITableViewCell as well as the cell itself on click

I have a TableViewCell with three Views. I'm using AutoLayout and UITableViewAutomaticDimension for the rowHeight. What I want to achieve is that when a user clicks on a cell, the blue view as well as the whole TableViewCell gets expanded (animated), like this ...
I couldn't come up with an idea to solve this, does anyone has a hint?

How to remove UITableViewCell border using storyboard

I want to know if is there a way to remove the border in a UITableViewCell (grouped style) using the Interface Builder and storyboard.
I'm using static cells too.
does this have to be made by code?
thanks!!
You could create two cell types and assign accordingly.

creating custom TableViewCell , label positions are correct

I am trying to use custom UITableViewCell. Everything is going well but the label I used in cell is not placing in proper place. I dragged labels as it is in custom cell from library.
Cell referenced to the class in its attribute window. I have only created an empty nib. Should I create a class for cell to set its place ? Any help tutorial reference plz. Actually I am trying to create view like:
Create CustomCell and drag and drop the uilables in the custom cell then use it. this is great one acc to ur problem and here is another tutorial
added the imgae of ableview cell

how to create a cell view which has a button and a "shorter cell" like contacts app?

I haved tried to create a view with a UIButton and a tableView Cell,
then I set the header view to be this view.
However,the cell in the header is not rounded-rect, besides,how to handle the cell's event,when user click this cell.
I haved tried to use custom cell also, but how to create a button and a shorter cell in a row?
when you select the cell,will not affect the button state?
thanks.
You can fake this in a number of ways. The simplest is to layout a rounded rectangle UIButton in your header, and turn off userInteraction for it so that it's just decorative.