I encountered this problem before.
Problem:
- You have to ensure that the view you will assign to
inputView
orinputAccessoryView
doesn’t belong to any parent view. When you create these views from a xib inside a ViewController, by default they are set as subviews of a superview.
Solution Tips:
- Use the method
removeFromSuperview
on the view you will assign toinputView
orinputAccessoryView
Related Contents:
- iOS 8 UITableView separator inset 0 not working
- Base64 Decoding in iOS 7+
- How to force view controller orientation in iOS 8?
- Rotation methods deprecated, equivalent of ‘didRotateFromInterfaceOrientation’?
- UIAlertController custom font, size, color
- Why can’t I call the default super.init() on UIViewController in Swift?
- Communicating and persisting data between apps with App Groups
- can’t get correct value of keyboard height in iOS8
- How to determine the content size of a WKWebView?
- iOS 8 – Screen blank after dismissing view controller with custom presentation
- Xcode 6 keeps renaming my app’s directory in iOS8 simulator after each run.
- Disable iOS8 Quicktype Keyboard programmatically on UITextView
- Underline part of a string using NSMutableAttributedString in iOS 8 is not working
- Unwind Segue not working in iOS 8
- Swipe to delete cell causes tableViewHeader to move with cell
- Email composure iOS 8
- Constants in Objective-C
- @import vs #import – iOS 7
- UIScrollView scroll to bottom programmatically
- How to add a touch event to a UIView?
- How can I change UIButton title color?
- What is the right way to check for a null string in Objective-C?
- How to adjust an UIButton’s imageSize?
- How can I load storyboard programmatically from class?
- ViewDidAppear is not called when opening app from background
- iOS app error – Can’t add self as subview
- Why is UICollectionViewCell’s outlet nil?
- How to make UIButton’s text alignment center? Using IB
- How to Get the Title of a HTML Page Displayed in UIWebView?
- NSAttributedString add text alignment
- How to use NSCache
- Swift – which types to use? NSString or String
- How to debug iOS 8 extensions with NSLog?
- UIButton Long Press Event
- Centering subview’s X in autolayout throws “not prepared for the constraint”
- Formatting a UITextField for credit card input like (xxxx xxxx xxxx xxxx)
- Checking a null value in Objective-C that has been returned from a JSON string
- NSAttributedString background color and rounded corners
- ios facebook sdk 4.0 login error code 304
- Turn off sound in iPhone Simulator
- MKMapView: Instead of Annotation Pin, a custom view
- Is there a way to ask user for Camera access after they have already denied it on iOS?
- Disable magnification gesture in WKWebView
- Rounded Corners on UIImage
- StoryBoard Assistant Editor stopped showing associated file
- How to open Location services screen from setting screen?
- iOS 8 Auto cell height – Can’t scroll to last row
- NSURLSession with NSBlockOperation and queues
- Unable to find a target named `ProjectName`
- Streaming live camera video from iOS (iPhone/iPad) to remote PC / server