Last active
August 29, 2015 14:25
-
-
Save Bashta/63dade2915a7c709a1c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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