iaomw
iaomw
I checked the previous `scatter` function for `lambertian`. It's pointing to somewhere in the unit sphere over the hit point. That's not the full range of cos(theta). If we change...
Hi, that's it. ``` lazy var nameLabel:UILabel = { let label = UILabel() label.font = someFont label.textColor = someColor self.contentView.addSubview(label) layout(label) { thisView in thisView.left == thisView.superview!.left + 33 thisView.bottom...
But I have another cell works well with pure NSLayoutConstraint without bug and warning ``` lazy var nameLabel:UILabel = { let label = UILabel() label.setTranslatesAutoresizingMaskIntoConstraints(false) label.font = someFont self.contentView.addSubview(label) let...
Thanks, I have tried your code. There is no crash nor warning, but the cell lost it's height, then it's using the default height provided by TableVIew.
Yes, I still need to set the width if using the self-sizing cell. And sometimes I also need to set the left of contentView to make sure it's not positioned...
Sorry, I miss the point. If I don't put the `contentView` on the left of `==` operator, how could I update the height of contentView based on the height of...
Then the contentView become very small, and everything get weird. Why `-` the height of `contentView` should be larger? I don't understand. 😵😵😵
Thanks @vfn The height of `contentView` really work in this way. But the the width of `contentView` is still not correct, it should go with the width of cell. So...
@vfn This method does resolved the size problem of contentView, but the label will not resize itself properly. It's a muti-line label, but it will appear to be a single...
Thanks, I know that. But I have different elements for touching and normal. And they also have different sizes and positions for touching and normal. So, basically the width is...