{"action":"created","issue":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1237","labels_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1237/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1237/comments","events_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1237/events","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1237","id":109447700,"number":1237,"title":"Custom bubble strange reaction","user":{"login":"djxmax","id":7045905,"avatar_url":"https://avatars.githubusercontent.com/u/7045905?v=3","gravatar_id":"","url":"https://api.github.com/users/djxmax","html_url":"https://github.com/djxmax","followers_url":"https://api.github.com/users/djxmax/followers","following_url":"https://api.github.com/users/djxmax/following{/other_user}","gists_url":"https://api.github.com/users/djxmax/gists{/gist_id}","starred_url":"https://api.github.com/users/djxmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djxmax/subscriptions","organizations_url":"https://api.github.com/users/djxmax/orgs","repos_url":"https://api.github.com/users/djxmax/repos","events_url":"https://api.github.com/users/djxmax/events{/privacy}","received_events_url":"https://api.github.com/users/djxmax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/labels/questions%20&%20help","name":"questions & help","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-02T08:09:47Z","updated_at":"2015-10-03T18:51:56Z","closed_at":null,"body":"Hi,\r\n\r\nFor my app, I want to add message between two bubbles : \r\n![capture d ecran 2015-10-02 a 09 37 45](https://cloud.githubusercontent.com/assets/7045905/10241443/50fba5de-68e9-11e5-956f-15214d21eb30.png)\r\n\r\nSo to do that, I choose to add \"special\" bubbles that I customise : I add a message with special Id like this (in swift)\r\n```\r\nlet jsqmessage = JSQMessage(senderId: \"specialId\", senderName: \"\", text: \"my text\")\r\nself.messages += [jsqmessage]\r\n```\r\n\r\nAnd after,  I customise my cell with this (I simplify a bit): \r\n```\r\noverride func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {\r\n        let cell = super.collectionView(collectionView, cellForItemAtIndexPath: indexPath) as! JSQMessagesCollectionViewCell\r\n        if(messages[indexPath.row].senderId == \"specialId\"){\r\n            let label1 = UILabel(frame: CGRectMake(0, 0, 300, 50))\r\n            label1.center = CGPointMake(UIScreen.mainScreen().bounds.width/2, 50)\r\n            label1.textAlignment = NSTextAlignment.Center\r\n            label1.text = messages[indexPath.row].text\r\n            label1.backgroundColor = UIColor.redColor()\r\n            cell.addSubview(label1)\r\n        }\r\n        return cell\r\n    }\r\n```\r\n\r\nBut the result Is totally different, the label apprear randomly on other cell (it change each time i open the app)\r\n![image2](https://cloud.githubusercontent.com/assets/7045905/10241856/c8930a30-68ec-11e5-80aa-2ff7b12c7eec.png)\r\n\r\nI also add some traces with print to verify what's the problem, but the trace reaction are normal and do what they have to do.\r\nI also try a lot of other modification but nothing work. So, 2 solutions:\r\n- my solution is not the right one\r\n- it's a bug\r\n\r\nThanks for your answer ;)\r\n(Sorry for my english)\r\n"},"comment":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/comments/145278302","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1237#issuecomment-145278302","issue_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1237","id":145278302,"user":{"login":"GianniCarlo","id":14112819,"avatar_url":"https://avatars.githubusercontent.com/u/14112819?v=3","gravatar_id":"","url":"https://api.github.com/users/GianniCarlo","html_url":"https://github.com/GianniCarlo","followers_url":"https://api.github.com/users/GianniCarlo/followers","following_url":"https://api.github.com/users/GianniCarlo/following{/other_user}","gists_url":"https://api.github.com/users/GianniCarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/GianniCarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GianniCarlo/subscriptions","organizations_url":"https://api.github.com/users/GianniCarlo/orgs","repos_url":"https://api.github.com/users/GianniCarlo/repos","events_url":"https://api.github.com/users/GianniCarlo/events{/privacy}","received_events_url":"https://api.github.com/users/GianniCarlo/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T18:51:56Z","updated_at":"2015-10-03T18:51:56Z","body":"haha ok 👍"}}