- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 根据输入框中的内容更改return的显示内容
if ([string length] == 0&&str.length==1) { [confirmPassWordTextFiled setReturnKeyType:UIReturnKeyGoogle]; [confirmPassWordTextFiled reloadInputViews]; // 刷新键盘 }
2012-08-23 18:07:17 944
原创 修改tableview各个 section之间的间隔
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ if(section > 1) return CELL_HEADER_TWO_HEIGHT; return CELL_HEADER_ONE_HEIGHT;}- (CGF
2012-08-23 11:00:50 10481
转载 为数字键盘添加自定义按钮的方法(iOS所有版本适用
因为的UIKeyboardTypeNumberPad类型的键盘没有完成按钮,为了自己加这个按钮,网上有N种方法,大体的思路就是:在获得键盘弹出通知时,在键盘的那个UIView上添加一个自定义的UIButton,但是这些方法都存在问题:1.使用UIKeyboardWillShowNotification时,我在iphone4.3及5.0模拟器上发现keyboard视图还没有创建出来2.ios
2012-08-22 12:40:34 21926
原创 如何获取当前视图中成为第一响应者的组件,并取消注册
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow];UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];[firstResponder resignFirstResponder];
2012-08-07 15:40:47 2493
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人