         commentTextField!.delegate = self
         self.tableView.tableFooterView = footerView
 
-        self.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Action, target: self, action: Selector("activityButtonAction:"))
+        self.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Action, target: self, action: Selector("actionButtonAction:"))
         
         // Register to be notified when the keyboard will be shown to scroll the view
         NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWillShow:"), name: UIKeyboardWillShowNotification, object: nil)

import ParseUI
import MBProgressHUD

enum ActionSheetTags: Int {
    case MainAction = 0,
    ConfirmDeleteAction = 1
}

let kPAPCellInsetWidth: CGFloat = 0.0

class PAPPhotoDetailsViewController : PFQueryTableViewController, UITextFieldDelegate, UIActionSheetDelegate, PAPPhotoDetailsHeaderViewDelegate, PAPBaseTextCellDelegate {
    private(set) var photo: PFObject?
    private var likersQueryInProgress: Bool
    


    // MARK:- ()

    func actionButtonAction(sender: AnyObject) {
        let actionController = UIAlertController(title: nil, message: nil, preferredStyle: UIAlertControllerStyle.ActionSheet)
        if self.currentUserOwnsPhoto() {
            let deletePhotoAction = UIAlertAction(title: NSLocalizedString("Delete Photo", comment: ""), style: UIAlertActionStyle.Destructive, handler: { _ in
                // prompt to delete
                self.showConfirmDeletePhotoActionSheet()
            })
            actionController.addAction(deletePhotoAction)
        }
        let sharePhotoAction = UIAlertAction(title: NSLocalizedString("Share Photo", comment: ""), style: UIAlertActionStyle.Default, handler: { _ in
            self.activityButtonAction(self)
        })
        actionController.addAction(sharePhotoAction)
        let cancelAction = UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: UIAlertActionStyle.Cancel, handler: nil)
        actionController.addAction(cancelAction)
        
        presentViewController(actionController, animated: true, completion: nil)
    }
    
    func showConfirmDeletePhotoActionSheet() {
        // prompt to delete
        let actionController = UIAlertController(title: NSLocalizedString("Are you sure you want to delete this photo?", comment: ""), message: nil, preferredStyle: UIAlertControllerStyle.ActionSheet)
        let deleteAction = UIAlertAction(title: NSLocalizedString("Yes, delete photo", comment: ""), style: UIAlertActionStyle.Destructive, handler: { _ in
            self.shouldDeletePhoto()
        })
        let cancelAction = UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: UIAlertActionStyle.Cancel, handler: nil)
        
        actionController.addAction(deleteAction)
        actionController.addAction(cancelAction)
        
        presentViewController(actionController, animated: true, completion: nil)
    }

    func activityButtonAction(sender: AnyObject) {
