uikeyboard

How to add a UIToolbar on top of UIKeyboard using MonoTouch?

青春壹個敷衍的年華 提交于 2019-12-06 08:25:04
I follow the example in Obj-C at Custom iPhone Keyboard for finding the UIKeyboard in the Windows SubViews, however, I don't know how to do this using MonoTouch. I don't know what the "description" is. If it is a property of UIView I cannot access it from MonoTouch??? Can someone please provide an example of finding the UIKeyboard as in the Obj-C sample but in C# for use in MonoTouch? Thank you. I assume you're looking for the same thing as the keyboard in Safari (i.e. it has a small toolbar at the top that adds extra functionality, as seen on the far right image here ) In that case, what you

iPhone snapshot including keyboard

不打扰是莪最后的温柔 提交于 2019-12-06 06:27:10
问题 I'm looking for the proper way to snapshot the entire iPhone screen including the keyboard. i found some code to snapshot the screen: CGRect screenCaptureRect = [UIScreen mainScreen].bounds; UIView *viewWhereYouWantToScreenCapture = [[UIApplication sharedApplication] keyWindow]; //screen capture code UIGraphicsBeginImageContextWithOptions(screenCaptureRect.size, NO, [UIScreen mainScreen].scale); [viewWhereYouWantToScreenCapture drawViewHierarchyInRect:screenCaptureRect afterScreenUpdates:NO];

Drawing outside UIInputViewController frame

淺唱寂寞╮ 提交于 2019-12-06 03:10:26
问题 Intro: I'm developing a keyboard extension for my native Armenian language. The keyboard's features should look like maximum similar to system default keyboard. One of the features I want to have inside my keyboard is to display Pop-ups on top of the touched buttons, like it is for English keyboard As you can see the pop-up can be drawn outside the keyboard frame Problem: I've managed to draw successfully the pop-up inside the frame of keyboard, but it gets masked to the keyboard frame, i.e.

Swift: Checkbox insertion in UITextView of a UITableViewCell and using UITapGestureRecognizer to recognize taps on the checkbox

﹥>﹥吖頭↗ 提交于 2019-12-06 02:26:42
Introduction Context: I am working on one of my first own apps, a sort of note-taking app. The basic framework is simple: I have a UITableView with cells in them with a few design elements and a large UITextView which the user can write their notes into. Issue: I would like to implement the checkbox feature, similarly to what Apple has in their app "Notes". I want it to be a "part" of the text, so its erasable by hitting the erase on the keyboard. I have checked posts on SO about inserting a character to a UITextView, which works (see code below), but they differ in their goal when it comes to

IQKeyboardManager not disabling

时光怂恿深爱的人放手 提交于 2019-12-05 22:25:21
Trying to disable IQKeyboardManager for a particular ViewController or for the whole app, it's not working. My AppDelegate code: [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO]; [[IQKeyboardManager sharedManager] setEnable:NO]; [[IQKeyboardManager sharedManager] disableToolbarInViewControllerClass:[TCChatViewController class]]; [[IQKeyboardManager sharedManager] disableInViewControllerClass:[TCChatViewController class]]; Also trying to disable in viewWillAppear: : [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO]; [[IQKeyboardManager sharedManager] setEnable:NO]; Disable

Use the system keyboard without a UITextView or UITextField

六眼飞鱼酱① 提交于 2019-12-05 16:57:09
I am creating an app with core graphics that needs to take text input and place characters at specific pixel offsets. Do I have to subclass UITextField or something and re-invent the wheel (redefine it to be a more abstract text entry widget - really I only need the events a UITextField generates) or can I somehow show the keyboard, receive it's events and dismiss it myself! Thanks! You could instantiate a UITextField with a frame that makes it invisible (off the "screen" to the left or the top for instance, and make sure the parent view is set to clip child views), and then call [myTextField

How to hide inputAccessoryView without dismissing keyboard

扶醉桌前 提交于 2019-12-05 15:14:47
问题 I am using a toolbar in the inputAccessoryView property of a textView. When the keyboard shows, it displays the toolbar as expected. When the device is rotated I want to remove the toolbar. I tried: myTextView.inputAccessoryView.hidden = !layoutIsPortrait; This does hide the toolbar, but leaves the outline of the taller keyboard behind. The keyboard is apparently still sized to fit the toolbar. It looks bad and interferes with touch events of underlying responders. myTextView

How to detect keyboard type changes with the size, type, suggestion bar height of new keyboard type?

ⅰ亾dé卋堺 提交于 2019-12-05 13:27:44
Is there any way to detect keyboard types changes with the size, type and suggestion bar height, change like from English keyboard to Hindi which contains some kind of suggestion bar (see screenshot). Normal English Keyboard First Problem After changing to Hindi LIPI - When just I changed, everthing is fine because size of english and hindi keyboard is same, but after start typing Hindi Lipi suggestion cover the TextField Second Problem After changing to Emoji - Emoji keyboard hight little bit more as compare to english, So again keyboard cover the TextField . Add an observer for a

UIKeyboard not automatically translucent in iOS7

主宰稳场 提交于 2019-12-05 09:44:47
I understand that when developing in Xcode 5 with and iOS 7 project, the keyboard that pops up when interacting with a UITextField should be translucent and show through any colors in the background. This is not the case in both my projects. I have a colored & blurred background and I'm hoping for that to transpire through the keyboard; however the keyboard remains the default white/gray. This is what I have so far as a demo: UIColor *tintColor = [UIColor colorWithWhite:0.21 alpha:0.4]; UIColor *background = [[UIColor alloc] initWithPatternImage:[[UIImage imageNamed:@"universe.jpg"]

Numeric keyboard with decimal

江枫思渺然 提交于 2019-12-05 09:28:58
问题 I´m building an app with equations and I have used a numeric keyboard but I want to have a decimal slot on it. The default is only numbers. How do you add a decimal input on that keyboard? This is the code I use to get the numeric keyboard .keyboardType = UIKeyboardType.NumberPad 回答1: Simply change the keyboard type: self.someTextField.keyboardType = UIKeyboardType.decimalPad See the documentation for all the keyboard types. 回答2: Select Decimal Pad in Keyboard Type for Text Field in Attribute