Skip to content

Instantly share code, notes, and snippets.

@Bashta
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bashta/63dade2915a7c709a1c4 to your computer and use it in GitHub Desktop.
Save Bashta/63dade2915a7c709a1c4 to your computer and use it in GitHub Desktop.
func setupCellForCheckins() {
let venueName: String = utils.getParamFromDictionary(cellData, searchKey: "check_in_title", defaultStr: "No data")
titleLabel?.text = venueName
let usersCheckedIn: String = utils.getParamFromDictionary(cellData, searchKey: "check_in_location_appended_data_collection", defaultStr: "No data")
messageSenderLabel?.text = usersCheckedIn
let timeAgo: String = utils.getParamFromDictionary(cellData, searchKey: "user_creation_date_ago", defaultStr: "No data")
messageTimeLabel?.text = timeAgo
let checkInComment = utils.getParamFromDictionary(cellData, searchKey: "check_in_description", defaultStr: "No data")
if let imageName = cellData?["check_in_cover_image_url"] as? String {
utils.downloadImage(imageName, handler: {image in self.userImage?.image = image})
} else {
userImage?.image = UIImage(named:"location_chat_icon_vector")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment