9
के अनुरूप नहीं है मेरी कोड में:प्रकार 'स्ट्रिंग' स्विफ्ट में प्रोटोकॉल NilLiteralConvertible
प्रकार 'स्ट्रिंग' के अनुरूप नहीं है:
override func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? { let stringIdent = String(format: "section_1_%d", section) return NSLocalizedString(stringIdent, comment: nil) }
मैं जब निर्माण चलाने में कोई त्रुटि दिखाया गया हूँ प्रोटोकॉल NilLiteralConvertible
यह कोड हमेशा उद्देश्य-सी में काम करता है।
स्विफ्ट में क्या गलत हो सकता है?