1.iOS 8 及以上UITableViewCell 添加子控件[cell.contentView addSubView:]
取得子控件[cell viewWithTag:];
2.[imageView addSubView : textField];
需添加
imageView.userInteractionEnabled = YES;才能使键盘响应点击事件。你在sb上拖控件,不会遇到这种情况。
未完待续。
1.iOS 8 及以上UITableViewCell 添加子控件[cell.contentView addSubView:]
取得子控件[cell viewWithTag:];
2.[imageView addSubView : textField];
需添加
imageView.userInteractionEnabled = YES;才能使键盘响应点击事件。你在sb上拖控件,不会遇到这种情况。
未完待续。