diff --git a/Yep/Base.lproj/Intro.storyboard b/Yep/Base.lproj/Intro.storyboard index a5579470..b3980ffa 100644 --- a/Yep/Base.lproj/Intro.storyboard +++ b/Yep/Base.lproj/Intro.storyboard @@ -4,7 +4,6 @@ - @@ -288,8 +287,8 @@ - - + + @@ -299,8 +298,8 @@ - - + + @@ -311,15 +310,15 @@ - - + + - - + + @@ -367,8 +366,8 @@ - - + + @@ -399,8 +398,8 @@ - - + + @@ -517,40 +516,17 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Yep/ViewControllers/Register/RegisterPickSkillsViewController.swift b/Yep/ViewControllers/Register/RegisterPickSkillsViewController.swift index 69ed3c0b..28d492ac 100644 --- a/Yep/ViewControllers/Register/RegisterPickSkillsViewController.swift +++ b/Yep/ViewControllers/Register/RegisterPickSkillsViewController.swift @@ -15,10 +15,6 @@ class RegisterPickSkillsViewController: BaseViewController { @IBOutlet weak var skillsCollectionView: UICollectionView! - @IBOutlet weak var addSkillsLabel: UILabel! - - @IBOutlet weak var doneButton: UIButton! - var masterSkills = [Skill]() var learningSkills = [Skill]() @@ -42,20 +38,16 @@ class RegisterPickSkillsViewController: BaseViewController { override func viewDidLoad() { super.viewDidLoad() + let doneBarButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Done, target: self, action: "saveSkills:") + navigationItem.rightBarButtonItem = doneBarButton + if !isRegister { - addSkillsLabel.hidden = true - doneButton.hidden = true - - let doneBarButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Done, target: self, action: "saveSkills:") - navigationItem.rightBarButtonItem = doneBarButton - - title = NSLocalizedString("Change Skills", comment: "") - + navigationItem.titleView = NavigationTitleLabel(title: NSLocalizedString("Change Skills", comment: "")) } else { - navigationController?.navigationBarHidden = true - addSkillsLabel.text = NSLocalizedString("Pick some skills", comment: "") + navigationItem.titleView = NavigationTitleLabel(title: NSLocalizedString("Pick some skills", comment: "")) } + skillsCollectionView.registerNib(UINib(nibName: addSkillsReusableViewIdentifier, bundle: nil), forSupplementaryViewOfKind: UICollectionElementKindSectionHeader, withReuseIdentifier: addSkillsReusableViewIdentifier) skillsCollectionView.registerClass(UICollectionReusableView.self, forSupplementaryViewOfKind: UICollectionElementKindSectionFooter, withReuseIdentifier: "footer") skillsCollectionView.registerNib(UINib(nibName: skillSelectionCellIdentifier, bundle: nil), forCellWithReuseIdentifier: skillSelectionCellIdentifier) @@ -66,17 +58,6 @@ class RegisterPickSkillsViewController: BaseViewController { }, completion: { skillCategories -> Void in self.skillCategories = skillCategories }) - - //view.backgroundColor = UIColor.redColor() - //skillsCollectionView.backgroundColor = UIColor.blueColor() - } - - override func viewWillLayoutSubviews() { - super.viewWillLayoutSubviews() - - if isRegister { - navigationController?.navigationBarHidden = true - } } // MARK: Actions