This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 注意,如果输入的是汉字的话,输入拼音后,会出现新的一行,让你选择拼音所对应的汉字,这个也会触发UIKeyboardWillShowNotification | |
| // 所以,你要加个变量,来判断键盘是否消失,没消失的话就不在上移界面 | |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| // Do any additional setup after loading the view. | |
| [[NSNotificationCenter defaultCenter] addObserver:self | |
| selector:@selector(keyboardWillShow:) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AMScanViewController.h | |
| // | |
| // | |
| // Created by Alexander Mack on 11.10.13. | |
| // Copyright (c) 2013 ama-dev.com. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
| #import <AVFoundation/AVFoundation.h> |