performSegue:withIdentifier:
should work unless you have not setup the the storyboard correctly.
What error do you get on doing performSegue:withIdentifier:
?
Did you setup a segue in storyboard connecting the two view controllers and does that segue have an identifier called secondViewcontroller
?
Take a look at this Storyboard tutorial.
2
solved iOS – how to move between view controllers without a button press