iOS storyboard 对添加的View Controller编程方法

来源:互联网 发布:淘宝二手市场发布 编辑:程序博客网 时间:2024/05/06 15:14

1.新建.h .m文件 cocoa touch class

2.到Main.storyboard 中拖出一个View Controller,将Class改为与上图Class 相同。

3.添加一个button action测试。

0 0