嗨,我是一名初学iOS学生,我无法手动安装
断头台菜单 https://github.com/Yalantis/GuillotineMenu
断头台菜单 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 UIKit class 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!) } }
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。