Swift How can i make custom cell for the collection of jsqmessageViewcontroller

╄→гoц情女王★ 提交于 2019-12-23 02:17:21

问题


i wold like to get explanation on how to do it, what classes to subclass . what to override and so on. for the of jsqmessageViewcontroller framework

for example outgoing cell , how to build my out layout and labels

any help will be appreciate

and yes i did search for it didn't find a lot info about that


回答1:


Just create a custom cell or xib and then when implementing the JSQ framework just use your custom cell in the

override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { //Configure your cell here return //yourCustomCell }




回答2:


Here is the series which you can follow http://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1



来源:https://stackoverflow.com/questions/34652255/swift-how-can-i-make-custom-cell-for-the-collection-of-jsqmessageviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!