1.新建.h .m文件 cocoa touch class 2.到Main.storyboard 中拖出一个View Controller,将Class改为与上图Class 相同。 3.添加一个button action测试。