ios - Load UITabBarController from Nib -


how load uitabbarcontroller nib?

for uiviewcontrollers this

        let viewcontroller = subclassofviewcontroller(nibname: "subclassofaviewcontroller", bundle: nil); 

but not find similar method load uitabbarcontroller nib

any thoughts?

thank you

edit: not using storyboards

if using storyboard

 let tabbarcontroller = [[uistoryboard storyboardwithname:@"main"bundle:null] instantiateviewcontrollerwithidentifier:@"subclassofaviewcontroller"];  

where subclassofaviewcontroller identifier.

else

let viewcontroller = subclassofviewcontroller(nibname: "subclassofaviewcontroller", bundle: nil) 

this method fine. since uitabbarcontroller subclass of uiviewcontroller there no need of separate method here in subclass


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -