Questions tagged [inputview]

120 questions
0
votes
0 answers

Remove the gap above and below UIDatePicker

Looking to remove the default gap between the date text and the top of my input view. Is there a way to make the picker frame bigger than the input view?
Justin
  • 717
  • 1
  • 9
  • 15
0
votes
1 answer

custom uiview as inputview swift

I have a custom inputview as: func datePickerInputView() { let screenWidth = UIScreen.mainScreen().bounds.width let dateView = UIView(frame: CGRectMake(100, 100, screenWidth, 160)) datePicker = UIDatePicker(frame: CGRectMake(0, 0,…
tew
  • 261
  • 4
  • 13
0
votes
1 answer

Setup inputView for different UITextFields in UITableView

I have UITableView with UITextFields in custom cells. For UITextField I use custom inputView: func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell =…
Oleksandr Fisun
  • 193
  • 2
  • 5
  • 10
0
votes
1 answer

How to use inputview through UITableViewRowAction swift

I tried implementing this guide and impelemented it inside: let doneItem = UITableViewRowAction(style: .Normal, title: " Done ") { (action, indexPath) -> Void in } but assigning the 'inputView' is where I'm stuck at. I tried assigning it to the…
tew
  • 261
  • 4
  • 13
0
votes
2 answers

Alert instead of keyboard for input in textfield --> cursor stays in textfield Swift2

I'm attempting to make an alert the input view for a textfield, since i have max. 3 choices to make and my customer wants to have it look this way. Basically no problem, i can tap on the textfield, resulting in showing the alert. After choosing the…
glace
  • 2,162
  • 1
  • 17
  • 23
0
votes
0 answers

Update UITextField's text from within a Custom Input View

I am showing a custom inputView for my UITextField like so let inputView = UIView() let button = UIButton() inputView.backgroundColor = UIColor.redColor() inputView.addSubview(button) let tf = UITextField() tf.inputView = inputView Now when the…
Prakash Raman
  • 13,319
  • 27
  • 82
  • 132
0
votes
1 answer

How to switch custom in-app keyboards

Recently I learned to make custom in-app keyboards. Now I want to be able to swap between multiple custom keyboards. However, resetting the textField.inputView property does not seem to work. I recreated a simplified version of this problem in the…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
0 answers

Can I change the appearance of the iOS Keyboard DecimalPad programmatically?

I'm trying to alter the appearance of the decimal pad to do things like remove the letters and turn the decimal point into a "Done" button. Is there a way to edit the appearance of this view or to subclass the keyboard DecimalPad? Note: I know how…
Shain Lafazan
  • 323
  • 5
  • 6
0
votes
1 answer

Moving uiTextField With ScrollView - Scroll stop working

I'm using some functions to move the UITextFieldsimmediately after InputView, see my code below: func DismissKeyboard(){ //Causes the view (or one of its embedded text fields) to resign the first responder status. …
0
votes
1 answer

Swift - Custom inputView for text field with IB?

I've been trying to figure this out all day and I feel completely lost. I have a text field that I'd like to be able to edit using a customized inputView. (For example, a custom inputView that contains a UIDatePicker with a "done" button to dismiss…
spwoco
  • 83
  • 5
0
votes
2 answers

textField prevents keyboard showing event

I found a calendarDatePicker here and I want to show that custom picker when user touched textField. In my previous project I just created a default pickerView and then set it to textField's inputView and it works. And here I've tried to do this…
mkz
  • 2,302
  • 2
  • 30
  • 43
0
votes
1 answer

Adding Custom input view to UITextField in Swift

I am trying to use a calculator as a custom input view to an UITextField in swift. I have a calculator separately defined in my app as CalculatorViewController. I need to access the CalculatorViewController in the UITextField I have in my…
Magesh
  • 277
  • 1
  • 4
  • 13
0
votes
1 answer

Get current keyboard frame gracefully?

Is there a graceful way of getting the frame (size) of whatever inputView is currently visible? By graceful, I mean not resigning, then re-activating the first responder, since that discards any kbd state data, e.g. Shift key status. What I…
0
votes
0 answers

Swift Custom InputView button Action Exception

I have a problem when I try call a UiViewController from another UiViewController on InputView. For example: I have class main: class HomeViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, RunKeyboardDelegate { …
0
votes
1 answer

iPhone keyboard wont show up after adding uitextfield.inputView

I have a signup page with a bunch of textfields. For some of them i replaced the textfields inputView with a UIPickerView to give them a selection of options to chose from. After implementing this, i ran into a strange problem. After the keyboard…
MingMan
  • 911
  • 1
  • 10
  • 31