Moving to another view controller in iOS on Button Click

后端 未结 2 2233
小蘑菇
小蘑菇 2021-02-19 23:15

I am very new to iOS and I am still trying to grasp things. I am trying out this simple program in XCode 5 where when a user clicks the button, he will be redirected into anothe

2条回答
  •  暖寄归人
    2021-02-19 23:51

    try this:

    WebServiceViewController *wc = [[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:@"WebServiceViewController"];
    

    also set storyboardId to WebServiceViewController in Identity Inspector

提交回复
热议问题