当在tableviewheader上单击完成按钮时,UITextfield删除

时间:2019-08-05 06:13:28

标签: ios swift xcode uitextfield swift4

我在TableViewCell上有一个文本字段。当我单击“完成”按钮时,文本字段将删除。当我向下滚动并向上滚动时,文本字段再次可见。

addSubview(search)

    search.leftViewMode = UITextField.ViewMode.always

    search.placeholder = "Поиск лекарств и товаров"
    search.backgroundColor = .white
    search.layer.cornerRadius = 10
    search.dropShadow(color: .black, opacity: 0.5, offSet: CGSize(width: 5, height: 5), radius: 5, scale: false)

1 个答案:

答案 0 :(得分:1)

private X509Certificate2 GetCertificateByThumbprint(X509Certificate2Collection certifcates, string thumbprint)
    {
        foreach (var certificate in certifcates)
        {
            if (certificate.Thumbprint == thumbprint)
                return certificate;
        }
    }