iphone - Call a function in a UIViewController's UIView -


I created a visual viewer using the view controller and the interface builder. I'm trying to call a function that I added to UIViewController in UIView. I'm not sure how to call that function.

I've tried

  [self.view myFunction]  

but it only crashes my program.

Have you declared your IB outlets and connected it to the method?

The owner of your view (more accurately the nib) file should be set in your visual controller class.

Unless your calling functions are functional and in ways you should not call anything on the scene. You just do not need to.

Editing: Grammatical Improvement


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -