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