Posts

Post not yet marked as solved
0 Replies
602 Views
from UITextInputMode.availableModes get something like ([UITextInputMode]) $R34 = 2 values { 	[0] = 0x0000000280dd2080 { 		baseUITextInputMode@0 = { 			baseNSObject@0 = { 				isa = UIKeyboardInputMode 			} 		} 		isDisplayed = true 		_extensionInputModeHasDictation = false 		_primaryLanguage = 0x99bdc31431ea3fe5 "en-GB" 		_languageWithRegion = 0x99bdc31436ca3fe5 "en_GB" 		identifier = 0x00000002820c52f0 "en_GB@sw=QWERTY;hw=Automatic" 		normalizedIdentifier = 0x99bdc31436ca3fe5 "en_GB" 		softwareLayout = 0x99b852756769aca6 "QWERTY" 		hardwareLayout = 0x9a99c33c2138dd59 "Automatic" 		_multilingualLanguages = 0x0000000282279e90 2 elements 	} 	[1] = 0x0000000280dd20d0 { 		baseUIKeyboardInputMode@0 = { 			baseUITextInputMode@0 = { 				baseNSObject@0 = { 					isa = UIKeyboardExtensionInputMode 				} 			} 			isDisplayed = false 			_extensionInputModeHasDictation = false 			_primaryLanguage = 0x99bdc20511ea3fe5 "en-US" 			_languageWithRegion = 0x00000001dd183f90 "en_US" 			identifier = 0x0000000283bbc2c0 "com.bitstrips.imoji.BitmojiKeyboard" 			normalizedIdentifier = 0x0000000283bbc2c0 "com.bitstrips.imoji.BitmojiKeyboard" 			softwareLayout = nil 			hardwareLayout = nil 			_multilingualLanguages = nil 		} 		_extension = 0x00000002819b9600 	} } How can I distinguish these two? I want to use the system keyboard, , but they all have English as the primary language. BTW, the second one is actual a emoji keyboard. the first one is UIKeyboardInputMode, and the second one is UIKeyboardExtensionInputMode, UIKeyboardInputMode and UIKeyboardExtensionInputMode are private api.
Posted Last updated
.