Xcode Cannot assign push to a button in view
I am using xCode 4.2. I have most of the interface in the mainstoryboard.xib. However a listing detail is using its own xib. It is a tabbed and navigation based project. On every view when a ctrl click a button "Push" option is available however on this detail view.xib its not. And hence I cannot make the button clcikable and make it open another view. I only see Did End on Exit, touch Down, etc. when I ctrl Clcik the button.
Anyone know why this happens? is this because it is not in the mainstoryboard? is it possible to make it clickable programmatically?
If you can't include it in the storyboard for some reason then you will have to load and push it in code. This is pretty standard code - create a new instance of the view controller using initWithNibName:, pass it any detail variables, then tell your navigation controller to push the new controller. This code will have to be linked to an action in the view controller that holds the button.