'var' parameters are deprecated and will be removed in Swift 3

public func getQuestionList(var language: String) -> NSArray {
 if self.data.count > 0 {
 if (language.isEmpty) { language = "NL" }
 return self.data.objectForKey("questionList" + language) as! NSArray
 } 
  return NSArray()
}

上面报警告 可改成下面的格式

public func getQuestionList(language: String) -> NSArray {
 var lang = language 
if self.data.count > 0 { 
if (lang.isEmpty) {lang = "NL" }
 return self.data.objectForKey("questionList" + lang) as! NSArray
 }
 return NSArray()}

你可能感兴趣的:('var' parameters are deprecated and will be removed in Swift 3)