swift - error calling function in xcode -


im having strange issue on xcode proyect. im getting following error: "missing argument parameter #1 in call"

on signup.swift file im calling:

let appdelegate : appdelegate =   uiapplication.sharedapplication().delegate as! appdelegate appdelegate.login()// here crashes in login 

the login func on appdelegate file following

    func login() {      // remember users login     let username : string? = nsuserdefaults.standarduserdefaults().stringforkey("username")      // if logged in     if username != nil {          let storyboard: uistoryboard = uistoryboard(name: "main", bundle: nil)         let mytabbar = storyboard.instantiateviewcontrollerwithidentifier("tabbar") as? uitabbarcontroller         window?.rootviewcontroller = mytabbar      }   } 

any ideas how solve issue? thanks


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -