FAQ Database Discussion Community


Swift: inputAccessoryView buttons are not showing

ios,xcode,swift,uibarbuttonitem,inputaccessoryview
Following is my code for adding an inputAccessoryView (with a Done button on it) to my textView: let keyboardButtonView = UIToolbar() keyboardButtonView.sizeToFit() let doneButton = UIBarButtonItem(image: nil, style: .Done, target: self, action: "closeMessageViewKeyboard") doneButton.possibleTitles = ["Done"] var toolbarButtons = NSMutableArray() toolbarButtons.addObject(doneButton) keyboardButtonView.items = toolbarButtons as [AnyObject] messageView.inputAccessoryView = keyboardButtonView The...

Leaving inputAccessoryView visible after keyboard is dismissed iOS8?

ios8,uikeyboard,inputaccessoryview
I want to make behavior like messaging app. I have been browsing Stack Overflow for solutions for this, and indeed there are plenty: Leaving inputAccessoryView visible after keyboard is dismissed This was the one that I found. But it seems things are a little different in iOS8. If I do...

Resizing accessoryInputView?

ios,resize,inputaccessoryview
I have tried and failed to resize a UITextField that resides inside an UIView, that is set as the inputAccessoryView of that text field. Now I have been trying to get the resizing to work. When the user enters text of 2 lines or more, the textfield should resize, and...

Replace inputAccessoryView of keyboard in UIWebView in Swift

ios,swift,uiwebview,keyboard,inputaccessoryview
I've been looking for days for a simple answer but I cannot seem to find it. I want to find and replace the inputAccessoryView of keyboard attached to my UIWebView if the accessory view exists on the keyboard. I want to replace it so I can have my own Prev...

Resize inputAccessoryView dynamically in iOS 8

ios,objective-c,swift,inputaccessoryview
Basically I am trying to create a resizing UITextView within a inputAccessoryView property. I have a viewController with the method canBecomeFirstResponder returning true and a view I instantiate via a custom class (which gets it from a XIB). Within this view is a UITextView located. I try to resize the...

View set as inputAccessoryView throws exception when added back into normal view

ios,ios8,uikeyboard,inputaccessoryview
I have a text view, some decorations etc. in a view and I want that view to dock on keyboard, just like any other messaging app. When I'm about to display my text view, here is how I attach my view to the keyboard: -(BOOL)textViewShouldBeginEditing:(UITextView *)textView{ UIView *inputView = self.textInputView;...