Add the complete button in the lower left corner of the iOS8 keypad.

Source: Internet
Author: User

Add the complete button in the lower left corner of the iOS8 keypad.

The core code of the add completion button in the lower left corner of the iOS8 numeric keypad is as follows:

-(Void) addDoneButtonToNumPadKeyboard {UIButton * doneButton = [UIButton buttonWithType: UIButtonTypeCustom]; if (systemVersion <8.0) {doneButton. frame = CGRectMake (0,163,106, 53);} else {doneButton. frame = CGRectMake (0, SCREEN_SIZE.height-53, 106, 53);} doneButton. tag = NUM_PAD_DONE_BUTTON_TAG; doneButton. adjustsImageWhenHighlighted = NO; [doneButton setTitle: @ "for" forState: UIControlStateNormal]; [DoneButton setTitleColor: [UIColor blackColor] forState: UIControlStateNormal]; [doneButton addTarget: self action: @ selector (doneButton :) forControlEvents: UIControlEventTouchUpInside]; NSArray * export Warr = [[UIApplication sharedApplication] windows]; if (export Warr! = Nil & Warr. count> 1) {UIWindow * needWindow = [Export Warr objectAtIndex: 1]; UIView * keyboard; for (int I = 0; I <[needWindow. subviews count]; I ++) {keyboard = [needWindow. subviews objectAtIndex: I]; NSLog (@ "% @", [keyboard description]); if ([[keyboard description] hasPrefix: @ "<UIPeripheralHostView"] = YES) | ([[keyboard description] hasPrefix: @ "<UIKeyboard"] = YES) | ([keyboard descript Ion] hasPrefix: @ "<UIInputSetContainerView"] = YES) {UIView * doneButtonView = [keyboard viewWithTag: Custom]; if (doneButtonView = nil) {[keyboard addSubview: doneButton] ;}}}}- (void) removeDoneButtonFromNumPadKeyboard {UIView * doneButton = nil; NSArray * export Warr = [[UIApplication sharedApplication] windows]; if (export Warr! = Nil & Warr. count> 1) {UIWindow * needWindow = [Export Warr objectAtIndex: 1]; UIView * keyboard; for (int I = 0; I <[needWindow. subviews count]; I ++) {keyboard = [needWindow. subviews objectAtIndex: I]; if ([[keyboard description] hasPrefix: @ "<UIPeripheralHostView"] = YES) | ([[keyboard description] hasPrefix: @ "<UIKeyboard"] = YES) | ([[keyboard description] hasPrefix: @ "<UIInputSetContainerV Iew "] = YES) {doneButton = [keyboard viewWithTag: NUM_PAD_DONE_BUTTON_TAG]; if (doneButton! = Nil) {[doneButton removeFromSuperview] ;}}}}





Note:

1. After iOS8, the description of the keyboard view starts with <UIInputSetContainerView. Therefore, you must add this item in the judgment logic.

2. After iOS8, the size of the keyboard view changes to the size of the entire screen. Therefore, you need to adapt the position added by the button.




What is the name of the second button in the lower left corner of the keyboard?

Windows key

Use of Fn in the lower left corner of Lenovo LCD keyboard

Fn is a key combination. It is useless and needs to be combined with other function keys to quickly change the operation features. The keys that can be combined are marked in blue on the keyboard. The specific function is:
Fn + F3: Turn off the computer display and keep the black screen. To enable the computer monitor again, press any key or press the TrackPoint pointer. If you connect an AC power adapter to a computer or detach it from a computer, you can also turn on the computer monitor. This function is designed to save power, especially when battery power is provided. The second is to prolong the life of the LCD screen.
Fn + F4: puts the computer in standby mode. To return to the normal operation, press Fn instead of F4. (Previously in Windows 95 and Windows NT, this method was called a temporary Mounting Mode). In this case, only the display and hard disk are disabled, and there is still power consumption, it is suitable for the absence of laptops in a short time (two hours or less.
Fn + F5: enable/disable the computer's built-in wireless network devices and Bluetooth devices.
Fn + F7: LCD screen in the notebook. connect the External Monitor (or projector) or display the output on both at the same time. The first time you press this combination key, the display will be switched from the notebook LCD screen to the external monitor, the second press this key combination to make the display appear on both the notebook LCD screen and external monitor. The third press this key combination to switch the display to the notebook LCD screen, that is, rotation in the following three ways: external Monitor (or projector) = notebook LCD screen and External Monitor (or projector) = notebook LCD screen. When the laptop LCD screen and external monitor display different desktop images, or in some cases, the two screens display the same desktop image but the system controls the update rate of the two screens separately, this function is not supported.
Fn + F8: If the LCD screen of the notebook cannot be displayed on full screen, you can switch the size of the computer screen between the expansion mode and the normal mode. (Note: Windows 2000 and Windows XP do not support this function)
Fn + F12: place the computer in sleep mode. To return to normal operation, press the power button for no more than 4 seconds. In this way, you can completely turn off the computer power without exiting the application or saving files. When the computer goes to sleep mode, all open applications, folders, and files must be saved to the hard disk before the computer can be powered off. Use Fn + F12 in Windows 2000 and Windows XP to enable sleep mode. You must install the ibm pm device driver on your computer. If you are using a notebook every day, you don't have to shut down your computer when you get off work. Instead, you can use this key combination to maintain the previous day's working status.
Fn + Home: adjusts the screen brightness. The brightness of the ThinkPad LCD screen is divided into seven levels, each time the brightness increases by one level, to the maximum brightness after the stop; 12 | ThinkPad Club
Fn + End: the key corresponding to Fn + Home. Each time the brightness is reduced by one level, it is stopped after the lowest brightness. The screen brightness is adjusted to save power when battery power is used.
Fn + PgUp: Key for ThinkLight. Press the keyboard light once and then press it again.

Function key
Press it with a key with special characters on the keyboard.
For example, what sound screen switch to enable optical drive display power turn on wireless =

You can see the color of the keyboard.
Press and hold FN and then press other operations.

FN key + NUMLOCK is the number key on the keyboard

Fn is used in combination with other function keys
Generally, the Fn color is blue, which corresponds to other key bits marked with blue on the keyboard.
The usage is as follows:
1. Press Fn and then press the corresponding function key. This is easy to use.
Just try it :)

1664011609 is very comprehensive.

Function keys, you see the blue characters on the keyboard, from the F1-F12 and direction keys include the keys in the upper left corner, these need Fn + these key combinations!
The keypad is used only when numlk is enabled.

You do not know what brand of computer you are. Each brand has a combination of keys for each brand.
FN means shift. Some buttons have two icons. When you press FN, press other keys.
Is the function of the icon above him ~...... Remaining full text>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.