断头台菜单 https://github.com/Yalantis/GuillotineMenu
使用Xcode 6.3& iOS8.3
这就是我做的
1)从示例中添加了断头台菜单文件和资产,复制到选中的项目目标并放在我的文件中,带有项目名称
2)在界面构建器中创建VIEwController并将类设置为GuillotineMeneVIEwController,它在下拉列表中
3)在单视图应用程序附带的VIEwController中,我在界面构建器中创建了条形按钮项目和按钮,将按钮插座连接到代码
4)控制拖到GuillotineMenuVIEwController设置segue到Custom和类GuillotineMenu它在下拉列表中
5)在我的VIEwController中,我将导航条形码从示例复制到vIEwDIDLoad,然后复制为segue准备
试图运行并继续使用未声明的类型“guillotineMenuVIEwController”
这是我的VIEwController代码
import UIKitclass VIEwController: UIVIEwController {@IBOutlet weak var barbutton: UIbutton!overrIDe func vIEwDIDLoad() { super.vIEwDIDLoad() let navbar = self.navigationController!.navigationbar navbar.barTintcolor = UIcolor(red: 65.0 / 255.0,green: 62.0 / 255.0,blue: 79.0 / 255.0,Alpha: 1) navbar.TitleTextAttributes = [NSForegroundcolorAttributename: UIcolor.whitecolor()]}overrIDe func prepareForSegue(segue: UIStoryboardSegue,sender: AnyObject?) { // Your Menu VIEw Controller vew must kNow the following data for the proper animatio let destinationVC = segue.destinationVIEwController as! GuillotineMenuVIEwController destinationVC.hostNavigationbarHeight = self.navigationController!.navigationbar.frame.size.height destinationVC.hostTitleText = self.navigationItem.Title destinationVC.vIEw.backgroundcolor = self.navigationController!.navigationbar.barTintcolor destinationVC.setMenubuttonWithImage(barbutton.imageVIEw!.image!)}}解决方法 感谢 Yalantis人民的帮助,这就解决了我的问题. 当我将文件夹复制到我的项目中时,我需要检查创建组并像往常一样复制项目,还需要确保将文件添加到构建阶段/编译源 总结
以上是内存溢出为你收集整理的Swift使用未声明的类型’… ViewController’全部内容,希望文章能够帮你解决Swift使用未声明的类型’… ViewController’所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)