[ad_1]
The Bluetooth scanner is utilized in my iPad App. When utilizing the app, the person used the scanner and in addition Apple Magic Keyboard in my App.
The scanner is equal to an exterior keyboard, and the Apple Magic Keyboard can also be an exterior keyboard.
Moreover, I exploit textView to obtain the enter content material.
- (void)textViewDidChange:(UITextView *)textView
{
[NSObject cancelPreviousPerformRequestsWithTarget:self];
[self performSelector:@selector(receivedBarcode:) withObject:textView.text afterDelay:0.25];
}
My questions:
-
It’s not doable to make use of the Apple Magic Keyboard usually for enter as a result of, every time the keyboard is clicked, the delegate technique of the textView will probably be executed.
-
How ought to I do know if the enter got here from the Scanner or if the person entered it utilizing the Apple Magic Keyboard?
-
Can I exploit a scanner and an Apple Magic Keyboard on my iPad on the similar time? Is there any approach to keep away from the battle between the 2 enter fashions?
[ad_2]
