i create some dynamic buttons. when the button pressed i want to push a new view controller. but i cant make it. it doesnt work what i wrote. here is my codes.
Code:
KategoriViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"KategoriViewController"];
[self.navigationController pushViewController:controller animated:YES];
what can i do to push new view controller when dynamic button is tapped ?