当EditText字段具有焦点时,是否有人知道如何在模拟器中显示键盘.我尝试了很多解决方案,但没有一个能够解决问题.我在android 4.3 Jelly Bean工作.我使用的模拟器是GenyMotion.我还想知道当EditText字段失去焦点时如何隐藏键盘.我假设如果键盘没有出现在模拟器中,则在设备上进行测试时不会出现.
任何帮助非常感谢
android emulation android-softkeyboard android-edittext genymotion
我的应用程序启动时出现上述错误.以下代码来自我的AppDelegate .h文件
#import <UIKit/UIKit.h>
@interface TableViewAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UINavigationController *navigationController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@end
Run Code Online (Sandbox Code Playgroud)
以下内容来自我的AppDelegate实现文件.m applicationdidfinishlaunchingwithoptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//Configure and show the window
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
return YES;
}
Run Code Online (Sandbox Code Playgroud)