Questions tagged [uitextfield]
A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button. You typically use this class to gather small amounts of text from the user and perform some immediate action, such as a search operation, based on that text.
8,462
questions
0
votes
0
answers
14
views
How to live change attributes on UITextField attributed text
I have UITextField which I am parsing for certain words in real time as users are typing. Every time users type a new character, I parse the text to find certain words, and highlight them with ...
0
votes
0
answers
10
views
Custom Floating UITextField animation
everyone. I'm trying to make a floating textfield. I couldn't somehow move the placeholderLabel up the animation when the TextField is clicked.
I just tried to change the testPlaceholder.centerYAnchor ...
0
votes
1
answer
51
views
Open ModalSheetLayout on TextField focus instead of Keyboard
I am working with Jetpack Compose and I have a page with several TextFields, where I want that, in several of them, when I click on the input, instead of appearing the keyboard, a ModalSheetLayout ...
0
votes
1
answer
37
views
How to detect the change of UITextField when the button tapped
I'm observing a textfield using combine like this.
extension UITextField {
var textPublisher: AnyPublisher<String, Never> {
NotificationCenter.default.publisher(
for: ...
0
votes
0
answers
12
views
Seachbar textfield has location -1 when deleting a token
Issue:
Seachbar textfield has NSRange location=-1 when deleting a token in the textfield
https://developer.apple.com/documentation/uikit/uisearchbardelegate/1624328-searchbar
it seems that the bug is ...
-1
votes
0
answers
15
views
How to insert String in Uitextfield by segmented control [closed]
I have a segment control and a field for entering email and password, I have two accounts with different email and passwords, I need to make the field at one position of the switch to have the email ...
0
votes
1
answer
44
views
How to center multiple UI elements within a parent UIView
I'm trying to create these 6 UITextField centered within a UIVIew that I have centered and is 0.85 the width of self.view. I was able to get it working on one iPhone size however it was hardcoded and ...
0
votes
0
answers
19
views
multiple UITextFields to store data in coreData and edit data using same textFields
i am using multiple UITextFields to store data in coreData and using another viewController to show all the data in tableView now i want to edit data using textfields in the mainViewController
import ...
2
votes
1
answer
38
views
Respond to specific key press in UITextField (UIViewRepresentable)
I would like to respond to keyboard presses in a UITextField wrapped as UIViewRepresentable. This is the code for the wrapper view:
import SwiftUI
import UIKit
struct ContentView: View {
@State ...
-1
votes
1
answer
50
views
How to create dropup in Flutter
How to create Auto Complete TextField in Flutter
The user start typing in field and the suggestions should come in a dropdup under the field with limit of 5 suggestions.
3
votes
1
answer
44
views
What is the difference between `FocusScope.of(context).unfocus()` and `FocusManager.instance.primaryFocus?.unfocus()` in the flutter?
When using FocusScope.of(context).unfocus(), there was an bug that the screen was rebuild then data disappeared.
I fixed the bug by Modify FocusScope.of(context).unfocus() -> FocusManager.instance....
1
vote
1
answer
90
views
How to remove "search web" option for selected text iOS 16 xcode14 beta
I'm having trouble removing this tick when text is selected, I've tried this:
class CustomUITextField: UITextField {
open override func canPerformAction(_ action: Selector, withSender sender: Any?) ...
0
votes
1
answer
50
views
Swift - Jump between textfields with one button
App
@IBOutlet weak var umCent: UITextField!
@IBOutlet weak var doisCent: UITextField!
@IBOutlet weak var cincoCent: UITextField!
@IBOutlet weak var dezCent: UITextField!...
0
votes
0
answers
26
views
Error on right click into textfield - swift
I have create an iOS app and I have ported for macOS with catalyst. I have create a simple login page with two textFiled one for email and one for password.
When I run the app in My Mac(Design for ...
1
vote
1
answer
53
views
UITextView intrinsic size problem in iOS 16.0 Beta 3
I am having trouble with an app that uses the intrinsic size of a UITextView on a physical iPhone 12 Pro Max running iOS 16.0 beta 3 (20A5312j). It seems to work on my other physical devices running ...