File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -701,21 +701,21 @@ Many apps need to display table view cells which contain images stored in the Pa
701701```
702702``` swift
703703func tableView (tableView : UITableView, cellForRowAtIndexPath indexPath : NSIndexPath) -> UITableViewCell {
704- let identifier = " cell"
705- var cell = tableView.dequeueReusableCellWithIdentifier ( identifier) as? PFTableViewCell
706- if cell == nil {
707- cell = PFTableViewCell (style : .Default , reuseIdentifier : identifier)
708- }
709-
710- if let title = object[" title" ] as? String {
711- cell! .textLabel .text = title
712- }
713- if let thumbnail = object[" thumbnail" ] as? PFFileObject {
714- cell! .imageView .image = UIImage (named : " placeholder.jpg" )
715- cell! .imageView .file = thumbnail
716- }
717-
718- return cell!
704+ let identifier = " cell"
705+ var cell = tableView.dequeueReusableCell ( withIdentifier : identifier) as? PFTableViewCell
706+ if cell == nil {
707+ cell = PFTableViewCell (style : .default , reuseIdentifier : identifier)
708+ }
709+
710+ if let title = object[" title" ] as? String {
711+ cell! .textLabel .text = title
712+ }
713+ if let thumbnail = object[" thumbnail" ] as? PFFileObject {
714+ cell! .imageView ? .image = UIImage (named : " placeholder.jpg" )
715+ cell! .imageView .file = thumbnail
716+ }
717+
718+ return cell!
719719}
720720```
721721</div >
You can’t perform that action at this time.
0 commit comments