---
title: "storyBoard的使用,使用performSegueWithIdentifier來切換ViewController"
author: "luckfox"
date: "2013-03-08T17:56:18Z"
tags: []
categories: ["移动开发"]
slug: "storyboard-performseguewithidentifier-viewcontroller"
draft: false
lastmod: "2013-03-11T15:05:03Z"
id: 1826416
url: "https://luckfox.iteye.com/blog/1826416"
---

原本以為使用performSegueWithIdentifier就可以輕鬆切換ViewController,沒想到一直發生錯誤
原來是要在IB中的segue的identifier寫下identifier,否則會錯誤
另外在stept3 的部分可以設定過場的畫面

```

- (IBAction)GoViewButton01:(id)sender
{
	[self performseguewithidentifier:@"viewcontroller01" sender:sender];
}

```


![](http://dl.iteye.com/upload/attachment/0081/4622/b23e7468-c903-3d6c-b9e3-7357f0904df5.gif)