View Coontroller在不關聯的狀況下跳轉spa
//寫在button的方法中blog
// 得到storyBoard當前故事板it
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];io
// 初始化要跳轉的頁面方法
ViewController2 *advertise = [storyboard instantiateViewControllerWithIdentifier:@"ViewController2"];im
[self.navigationController pushViewController:advertise animated:YES];img