oscarimonbox
9/28/2018 - 7:02 AM

Utilizar o convertir celda (uitableviewcell uicollectionviewcell) como view (uiview)

            self.cell = Bundle.main.loadNibNamed("PlaceWidgetCell", owner: self, options: nil)?[0] as? PlaceWidgetCell
            
            let rect = CGRect(
                origin: CGPoint(x: 20, y: self.vContent.frame.size.height - Dimens.sharedInstance.PlaceCellHeight - 20),
                size: CGSize(width: self.vContent.frame.size.width-40, height: Dimens.sharedInstance.PlaceCellHeight)
            )
            
            self.cell?.frame = rect;
            self.cell?.contentView.frame = rect;
            self.cell?.setPlaceCell(place: place);
            self.cell?.contentView.layer.cornerRadius = 10
            self.vContent.addSubview((self.cell?.contentView)!);