本文主要是介绍Snail—UI学习之自定义键盘及键盘收起(待完善),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在viewController.h中加入代理
#import <UIKit/UIKit.h>@interface WJJRootViewController : UIViewController <span style="color:#FF0000;"><UITextFieldDelegate></span>@end
viewController.m中代码展示
#import "WJJRootViewController.h"@interface WJJRootViewController (){<span style="color:#FF0000;">UITextField * _textField;</span>
}@end@implementation WJJRootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];if (self) {// Custom initialization}return self;
}- (void)viewDidLoad
{[super viewDidLoad];self.view.backgroundColor = [UIColor greenColor];// Do any additional setup after loading the view._textF
这篇关于Snail—UI学习之自定义键盘及键盘收起(待完善)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!