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.
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 havecreatepdfbtn
method implemented - implement method.- you have implementet
createpdfbtn
invc
object - public or private method? in .h file ?
Comments
Post a Comment