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:

enter image description here

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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -