iphone - OCUnit testing problems in UINavigationController -


i create single view application 1) story board 2) arc , 3) unit testing. in view controller drag on uibutton. , viewcontrller embedded navigation controller (using interface). run fine in when run application, when run application test case target aries problem.

enter image description here

vc viewcontroller object declare in .h file. , createpdfbtn object of uibutton.

which thing missing?

you trying call createpdfbtn on view controller (self.vc). since not have method name error message:

unrecognized selector sent instance

three possible problems , solutions:

  • you may calling method on wrong object - vc right object?
  • vc correct not have createpdfbtn method implemented - implement method.
  • you have implementet createpdfbtn in vc object - public or private method? in .h file ?

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -