ios - click on UIImageView to change ViewController -
i have custom image (profile picture) want click , go profile view. registering click, , have segue set in storyboard, when click, nothing happens. profile picture part of pftableviewcell(using parse), part of pfquerytableviewcontroller. trying navigate pfquerytableviewcontroller. here how connected on storyboard:
and here i'm trying in code transition:
func onprofiletap(send:anyobject){ nslog("profile clicked") let storyboard = uistoryboard(name: "main", bundle: nil) var vc:wrapperprofileviewcontroller = storyboard.instantiateviewcontrollerwithidentifier("profileviewcontroller") as! wrapperprofileviewcontroller vc.parseuser = parseuser! holder?.navigationcontroller!.pushviewcontroller(vc, animated: true) //holder pfquerytableviewcontroller. "self" pftableviewcell }
i have done similar before , worked. checked make sure segue identifier correct, nothing happens other nslog printing console.
just looking @ code, , knowing nothing else situation, guess holder
nil
. reason "nothing happens". can test println
statement.
Comments
Post a Comment