让UITextField全选

[textField selectAll:self];
原文地址:https://www.cnblogs.com/cchHers/p/8712068.html