Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error use of undeclared type "guillotineMenuViewController #1

Closed
Ongomobile opened this issue Apr 21, 2015 · 2 comments
Closed

error use of undeclared type "guillotineMenuViewController #1

Ongomobile opened this issue Apr 21, 2015 · 2 comments

Comments

@Ongomobile
Copy link

Thanks in advance for help I probably missed something simple
I am a beging iOS Student I am having trouble manually installing
I get use of undeclared type "guillotineMenuViewController
I searched stack overflow for answers and went over project several times
Using Xcode 6.3 & iOS8.3
My project https://github.com/Ongomobile/GMenu
Just wanted to see if I could get the menu to work first

This is what I did

  1. added Guillotine Menu file and assets from example, copied to project target selected and put under my file with project name

  2. Created ViewController in interface builder and set class to GuillotineMeneViewController, it was in dropdown

  3. In ViewController that comes with single view application I created bar button item and button in interface builder, connected button outlet to code

  4. Controll dragged to GuillotineMenuViewController set segue to Custom and class GuillotineMenu it was in dropdown

  5. In my ViewController I copied nav bar code from example to viewDidLoad, and copied prepare for segue after that

Tried to run and keep getting the error use of undeclared type "guillotineMenuViewController
here is my code from my view controller

import UIKit

class ViewController: UIViewController {

@IBOutlet 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!)
}

}

@andreaseid
Copy link

Hi,
i've solved your problem.

  1. Copy into the desktop the "GuillotineMenu" folder;
  2. Remove the folder from Project (select Move to trash).
  3. Add the folder "GuillotineMenu" into your projects and select the check "Copy items if needed";
  4. Add the reference into Build phases > Compile Source.
  5. Build and enjoy :)

@Ongomobile
Copy link
Author

Thanks so much for help, I had a feeling I was missing a step. I promise to help someone else when I can
Mike

On Apr 22, 2015, at 1:58 AM, andreaseid notifications@github.com wrote:

Hi,
i've solved your problem.

  1. Copy into the desktop the "GuillotineMenu" folder;
  2. Remove the folder from Project (select Move to trash).
  3. Add the folder "GuillotineMenu" into your projects and select the check "Copy items if needed";
  4. Add the reference into Build phases > Compile Source.
  5. Build and enjoy :)


Reply to this email directly or view it on GitHub #1 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants