I am programmatically presenting a view controller, but when a view controller appears, it is missing a navigation bar. Is there any way to programmatically set a navigation bar on this new view controller when it is called?
Here is my code so far:
//LOAD CRICKET GAME
if gameGAMETYPE[index] == "Cricket" && gameGAMEPLAYERS[index] == "1" {
println("LOAD ONE PLAYER CRICKET")
//load OnePlayerCricket.swift
//replace tableData with TABLEDATA
//programatically present new view controller
if let resultController = storyboard!.instantiateViewControllerWithIdentifier("OnePlayerCricketVC") as? OnePlayerCricket {
presentViewController(resultController, animated: true, completion: nil)
//programmatically present a navigation bar
NEED HELP HERE!!!! thank you :)
}
Aucun commentaire:
Enregistrer un commentaire