xcode - How to call a method defined in a UIView controller from a UIView placed within the ViewController -


how call method defined in uiview controller uiview placed within viewcontroller.

if isn't possible how make button placed within uiview call segue?

spent hours trying figure out.

so took me day managed find simple workaround.

in uiview.h create uiviewcontroller property , in viewcontroller set uiviews property .self .

having done within uiview can access property , there call prepare segue.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -