Ricky Tan
Ricky Tan
@alexlee002 just to make it more like **Objective-C**, I think
你指的哪里的 cell ?
自定义一个 cell 子类: ```objective-c @interface MyCell : UITableViewCell @property (strong) UICollectionView *collectionView; @end @implementation MyCell - (void)prepareForReuse { [super prepareForReuse]; [self.collectionView reloadData]; } @end ``` 这些事情交给 cell 自己做,在 `prepareForReuse` 中
How wide is your image view? Could you paste a screenshot?
This is caused by the rect on [line 69](https://github.com/rickytan/RTViewAttachment/blob/master/RTViewAttachment/Classes/RTViewAttachmentTextView.m#L69) ``` (CGRect) rect = (origin = (x = 5, y = 0), size = (width = 150, height = 150)) ```...
Not yet. I think this issue is due to the **NSLayoutManger**
I think you have to update its size yourself, by: ```objective-c CGSize size = [self systemLayoutSizeFittingSize:UILayoutFittingCompressedSize]; self.bounds = CGRectMake(0,0, size.width, size.height); ```
Can you try to use the **Convert to Swfit** function of Xcode?
I'm not so familiar with `Swift` for now, but I think you can try convert to swift in **Xcode** 
Xcode 16.1 并没有出现闪退的情况