Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

I’m building a custom input field using UITextField. When the user taps to focus the field and the text is long, the entire text becomes selected by default. This is the same behavior you can see in ...
Duy Huỳnh Nguyễn Tuấn's user avatar
1 vote
0 answers
69 views

I have a stack view with UITextField (textView) and UIView (dropdown) in it. Its a backend-driven UI, therefore the views are not initialized on screen load. Rather theyre added after UI request is ...
Russ's user avatar
  • 83
0 votes
1 answer
397 views

I have a custom keypad that works with a custom text field. It looks great on the iPhone but not so great on the iPad. I want to control the text field with the buttons of the keypad but not have the ...
David H.'s user avatar
1 vote
2 answers
54 views

I have a textField and a submit button. The submit button is disabled by default and should only be enabled if textField has 3+ characters typed into it. My code: class AddNameVC: ...
CalebGates's user avatar
0 votes
1 answer
225 views

How would I update a table view row as as a text field text changes? It is difficult to create a string from the arguments in textField(:shouldChangeCharactersIn:replacementString:) so that the string ...
daniel's user avatar
  • 1,036
1 vote
1 answer
584 views

I'v ten textfields like otp for mobile number.I've handled all cases except like if user write digit in first textfield and focus goes to second textfield.Second textfield is empty and when i press ...
Shaikh's user avatar
  • 45
-1 votes
1 answer
1k views

I have one textField. private var verseTitle: UITextField = { let tf = UITextField() tf.placeholder = "TITLE" tf.font = UIFont(suite16: .tBlackItalic, size: 18) tf.textColor =...
Rahul Ravi Prakash's user avatar
0 votes
2 answers
292 views

While the user is entering the credit card number, I want to star a certain part of the text field as above for security. How can I do it?
Bilal Durnagöl's user avatar
4 votes
0 answers
541 views

I trying put to 2 items in rightView component. for example;` let label = UILabel(frame: CGRect(x: -80, y: 0, width: 100, height: 50)) let rightView = UIView(frame: CGRect(x: 100, y: 100, width: ...
Mahmut Enes Çetin's user avatar
0 votes
1 answer
322 views

I am trying to write a class that has a method which observe text changes on UITextField objects. When in ViewController, code below works as intended: class ViewController: UIViewController { @...
Neco's user avatar
  • 65
-1 votes
1 answer
139 views

I am trying to get the inputted text from recipeName, servingsNumber, prepTime and cookTime to save to fb. I know this is close to where I need to be. I am need some help with my save function. I need ...
Daniel's user avatar
  • 19
0 votes
2 answers
921 views

I am using the SkyFloatingLabelTextField class for UITextfield,How can I disable the Copy and paste functionality on this textfiled.
Manish Kumar's user avatar
0 votes
2 answers
1k views

My UIViewController confirms to UITextFieldDelegate and implements delegate method: func textFieldDidEndEditing(_ textField: UITextField) It also sets delegate = self in viewDidLoad All works fine ...
Ali Jawad's user avatar
  • 151
2 votes
2 answers
5k views

So for my own reasons, I need the full control that UITextField and its delegates would normally offer, but the screen it's being added to is written with SwiftUI. Needs a .decimal keyboard, so no ...
Joey Nash's user avatar
3 votes
2 answers
1k views

I have a textfield in my tableview cell. When I am entering something and click on the submit button, I want to save the text in a struct to use it in other view controller. But the problem is , when ...
Ios Developer's user avatar
0 votes
1 answer
117 views

I have a comment section in my app where a user can 1) see all of the comments that have been posted and 2) post a comment of his own in the same view controller. When the user arrives at the view ...
safetotry's user avatar
1 vote
1 answer
932 views

I have a textfield which, as user types in it, triggers a popover to be presented with a list of suggested values which the user can select from. Here is the textfield: lazy var iata: CustomTextField =...
DevB1's user avatar
  • 1,615
0 votes
1 answer
74 views

I'm working with a VC that has as a variable amount of cells. Each cell contains an ingredient, as well as a percentage for the amount. I added an inputAccessoryView to the textField keyboard that has ...
StonedStudio's user avatar
0 votes
2 answers
56 views

I am trying to limit the number of characters that the user can enter to 1. class ActivationViewController: UIViewController , UITextFieldDelegate{ @IBOutlet weak var activationCodeTextField1: ...
AG_HIHI's user avatar
  • 2,065
0 votes
1 answer
68 views

Disclaimer: I'm new to coding. I'm making a personal finance app. When the user creates a new transaction, I want them to be presented with a single textfield at a time. In a single view controller, I'...
BriScoLeg's user avatar
  • 105
0 votes
1 answer
1k views

I have a UIViewController which has 3 three UITextFields - TF1, TF2 and TF3. When the app is running on iOS simulator and I press Tab key, the focus moves to the next text field as expected. TF3 is ...
user avatar
0 votes
1 answer
1k views

I have a textField to input a Canadian postal code. And I am using the following code to ensure the formatting is correct or else show an alert saying the formatting is incorrect. This is working with ...
user12669401's user avatar
0 votes
1 answer
895 views

How to detect if the user tapped on the caps lock button in iOS keyboard? func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> ...
Ramcharan Reddy's user avatar
0 votes
1 answer
31 views

I have a textField and button which binding with Keyboard, but when try to write in textField the button disapper and when closing the keyboard the button I use this function func bindToKeyboard()...
Elsayed Ahmed's user avatar
0 votes
1 answer
164 views

I have an UIToolbar containing a UITextField. I want to show the toolbar above the keyboard and then display it again when I finish editing inside the textfield. The issue is that it is working when ...
Iphone User's user avatar
  • 1,950

1
2 3 4 5
12