Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 26 October 2021
In Most of App we use the UITextfield for getting the value from user like their name , email or other details , some time user will make the entry of emoji so it is not a valid & we have to face lot of issue to restrict this type of string .
In iOS what we can do , we can select the ASCII Keyboard type but it will work only for English language input but it will not support for other language.
For This what we have to do.
Follow This Steps:
1: First we will take a UITextfield like Firstname
Create a Outlet of this :
@IBOutlet weak var firstNameTextField: UITextField!
2: Take a Submit Button where the user will click & get the Value of Textfield.
Here we will have to check weather the value are empty , valid .
for that write this code.
3: Now write the Extension.
Note:
1: In first step we are checking the space character .
2: but in second step we are checking weather the string contains emoji or not
4: Now write this Extension for checking the string contains emoji or not .
5: With the help of this Extension you can verified the string contains emoji or valid emoji or only emoji string .
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.