【发布时间】:2016-09-20 14:04:04
【问题描述】:
如何将updateHeaderNotifications 和DebugAlert 分配给NSlocalizedString?我尝试添加updateHeaderNotifications = Nslocalized("text_text"),但它不起作用。感谢帮助
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是如何定义的?
标签: iphone swift switch-statement case