UA-17470720-3

Jump to content


Photo
- - - - -

Navigation Bar Disappears on Manual Segue


  • Please log in to reply
2 replies to this topic

#1 wizgod

wizgod

    I'm what you guys call a User

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 575 posts
  • LocationThe Grid
Reputation: 149
Popular

Posted 07 January 2015 - 09:55 PM

Greetings Programs!

 

I've got everything in IB and I'm doing a manual segue and the navigation bar is missing from the destination view controller. I have found a number of solutions online but none of them are working for me.

 

My storyboard has a Navigation Controller -> Categories VC -> Topics VC -> Posts VC

 

The navigation bar shows up in the Categories VC but not the other two.

 

        self.tableViewModel.cellActions.didSelect = {
            (cell, indexPath) in
            
            self.performSegueWithIdentifier("posts", sender: cell)
        }


    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
        if segue.identifier == "posts" {
            let postsViewController = segue.destinationViewController as PostsViewController
            
            if sender.isKindOfClass(SCCustomCell) && sender != nil
            {
                let cell = sender as SCCustomCell
                postsViewController.topic = cell.boundObject
            }
        }
    }

 

Any help would be appreciated :-)

 

Wg


P.S. I love Swift... talk Swift.. Never too old school to learn yet another programming language. LOL! ;-)


#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 08 January 2015 - 08:45 AM

Hi Wg,

 

Are you sure you set the segue type correctly? (to "Show" and not "Present Modally" for instance)

 

I've just created a modified version of our TasksApp sample and it seems to be working well. Please find it attached.

 

 

Attached Files


  • wizgod likes this

#3 wizgod

wizgod

    I'm what you guys call a User

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 575 posts
  • LocationThe Grid
Reputation: 149
Popular

Posted 08 January 2015 - 09:31 AM

Thanks Tarek!

 

It was the "Show" not "Present Modally" that caused my problem.

 

Wg


P.S. I love Swift... talk Swift.. Never too old school to learn yet another programming language. LOL! ;-)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users