ios - LAContext change UIAlertController button title -


मैंने अपने कोड में LAContext के साथ TouchID को शामिल किया है, जैसे:

< P> यहां छवि विवरण दर्ज करें

हालांकि, मैं नाम बदलना चाहता हूं "सुरक्षा कोड दर्ज करें" (या ऐसा कुछ) दर्ज करने के लिए "पासवर्ड दर्ज करें" से बटन शीर्षक, जैसे:

मैं उस बटन का शीर्षक बदलने के बारे में कैसे जाना होगा?

यहाँ LAContext है और यहाँ मेरा कोड है :

<प्री> var touchIDContext = LAContext () अगर स्पर्शआईडेंटटेक्स्ट कंस एवलैटेट पॉलिसी (LAPolicy.DeviceOwnerAuthenticationWithBiometrics, त्रुटि: & amp; msg त्रुटि) {touchIDContext.evaluatePolicy (.DeviceOwnerAuthenticationWithBiometrics, स्थानीयकृत Reason: touchIDMessage) {(सफलता: Bool, त्रुटि: एनएसईआरआर!) - & gt; अगर सफलता {println ("सफलता")} अन्य {println ("त्रुटि: \ (त्रुटि)")}}}

स्थानीयकृत फ़ॉलबैकटाइटल प्रॉपर्टी सेट करें:

उद्देश्य-सी:

  Lacontext * context = [[[एलएसीटीएक्सएक्ट एलोक] init]; Context.localizedFallbackTitle = "यहाँ आपका पाठ";  

स्विफ्ट:

  var touchIDContext = LAContext () context.localizedFallbackTitle = "आपका पाठ यहां"  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -