{"action":"opened","issue":{"url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/512","repository_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip","labels_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/512/comments","events_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/512/events","html_url":"https://github.com/xmartlabs/XLPagerTabStrip/issues/512","id":284507156,"number":512,"title":"I created a custom cell with a badge. How to access the badge to update the number programatically?","user":{"login":"junweimah","id":21700014,"avatar_url":"https://avatars3.githubusercontent.com/u/21700014?v=4","gravatar_id":"","url":"https://api.github.com/users/junweimah","html_url":"https://github.com/junweimah","followers_url":"https://api.github.com/users/junweimah/followers","following_url":"https://api.github.com/users/junweimah/following{/other_user}","gists_url":"https://api.github.com/users/junweimah/gists{/gist_id}","starred_url":"https://api.github.com/users/junweimah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junweimah/subscriptions","organizations_url":"https://api.github.com/users/junweimah/orgs","repos_url":"https://api.github.com/users/junweimah/repos","events_url":"https://api.github.com/users/junweimah/events{/privacy}","received_events_url":"https://api.github.com/users/junweimah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-26T07:15:13Z","updated_at":"2017-12-26T07:15:13Z","closed_at":null,"author_association":"NONE","body":"I have my xib set up and the screen now looks like this : \r\n\r\n![image](https://user-images.githubusercontent.com/21700014/34349916-13209780-ea4f-11e7-8766-684a2bb6aa3e.png)\r\n\r\nI have my cell.swift like this : \r\n\r\n```\r\n    @IBOutlet weak var ivTabIcon: UIImageView!\r\n    @IBOutlet weak var lblTitle: UILabel!\r\n    @IBOutlet weak var viewBadge: UIView!\r\n    @IBOutlet weak var lblBadge: UILabel!\r\n```\r\n\r\nAnd I configure the title and icon like this in my parent view controller : \r\n\r\n```\r\n    override func configure(cell: TabImageCellCollectionViewCell, for indicatorInfo: IndicatorInfo) {\r\n        cell.ivTabIcon.image = indicatorInfo.image\r\n        cell.lblTitle.text = indicatorInfo.title\r\n    }\r\n```\r\n\r\nBut however this is useless because this is a one time configure, I would like to change the badge number after pulling some info from api. Which must happen outside of this configure function.\r\n\r\nHow do I access the badge property?\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"junweimah"}}