iOS虚拟键盘上添加动态按钮(3)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-06 08:43 点击:次
[self.view addSubview:exitButton];
}
}
-(void)CancelBackKeyboard:(id)sender
{
NSLog(@"%@",NSStringFromSelector(_cmd));
[textField resignFirstResponder];
}
- (void)viewDidUnload
{
[self setTextField:nil];
exitButton=nil;
[super viewDidUnload];
// Release any retained subviews of the main view.
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
- (void)dealloc {
[textField release];
[exitButton release];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
}
相关新闻>>
- 发表评论
-
- 最新评论 更多>>