如何將updateHeaderNotifications
和DebugAlert分配給NSlocalizedString
?我試圖添加updateHeaderNotifications = Nslocalized("text_text")
,但它不起作用。求助switch語句分配給NSlocalizedString
private func initViewToCurrentState(pocketStatus: pocketStatus?) {
if let status = pocketStatus {
switch status {
case .Created:
**updateHeaderNotifications** ("text1")
initpocketBeforeTripView()
case .Paid: fallthrough
case .Undone: fallthrough
case .Aborted: fallthrough
default:
PocketRideService.sharedInstance.removeCachedRide()
dismissViewControllerAnimated(false, completion: {
DebugAlert.show("text")
})
}
}
}
如何updateHeaderNotifications定義? – matsoftware