I am using https://github.com/hackiftekhar/IQDropDownTextField library for drop down.
I have followed the steps given in documentation but getting exception
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITextField setIsOptionalDropDown:]: unrecognised selector sent to instance
I also created bridging header for it.
I want to know what exactly this exception describes? Why and when this is occurring? How can I resolve this issue?
Note: I am using SWIFT programming language
Have you created your textfield outlet as IQDropDownTextField Outlet
if not
Try this
In your storyboard select your textfield and then select identity inspector and then in class write IQDropDownTextField and then create outlet.
Hope it helps.
Related
After run application and click button, which is connected to next controller I get this error:
2016-04-26 12:49:32.743 Kalkulator[7401:159800] Missing proxy for identifier UpstreamPlaceholder-oFL-gV-w1Q
2016-04-26 12:49:32.744 Kalkulator[7401:159800] Missing proxy for identifier UpstreamPlaceholder-ufI-Y0-ejo
2016-04-26 12:49:32.753 Kalkulator[7401:159800] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key searchAnything.'
I don't have (and I didn't have) any "searchAnything". searchAnything is in another group/project. There I don't have any error.
Solutions from:
Terminating app due to uncaught exception 'NSUnknownKeyException' : iOS app crash
and
What does this mean? "'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X"
didn't help me.
I don't know how to add all project here so I sent my mini-project-from-tutorial to sendspace
Go to storyboard and check whether the outlet connection is with Exclamation symbol if so remove it and then give proper connection to get it done.You have to select the appropriate viewcontroller which is getting crash.
This is because some outlet in the ViewController that you loading on click of button is not perfectly set. Please check for the following -
Main view outlet may not set
Any of the UIObject, may have double outlet(may be you change the object name and format to remove last outlet from the connection Inspector)
Push segue is deprecated from iOS 8.0 and later.
Temporary solution:
Change your Deployment Target to 9.0 and it will work.
Permanent Solution:
Create a new Xcode project copy all files except storyboards from existing project to new project and design the storyboard as per the existing one from the beginning.set your deployment target to iOS 8.0
I created a new tabbed application in Xcode. I am receiving the following error every time I try to type any letters or numbers into a text field.
I noticed that this error started when I checked the box for "is initial view controller"
When i have the ViewController itself set as the initial ViewController it will not throw the error. However, when I make a NavigationController the initial ViewController it will throw this error.
Error received:
Reminder[46707:4165261] -[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x10d087af0
2016-03-23 00:48:19.830 Cable tech Reminder[46707:4165261] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x10d087af0'
For me this issue was caused because I inadvertently clicked on the Key Commands controls in the attribute inspector. I did not create any commands, but having and empty entry caused any input into a textField to crash.
Solution :-
1) Right click on storyboard and open as source code.
2) Search for keyCommands and delete that empty keyCommands tag.
3) Clean and Run.
This solved my problem, I hope it will be helpful for you as well.
Cheers
I tried this site's Xcode project.
http://www.touch-code-magazine.com/tutorial-building-advanced-rss-reader-with-ios6/
But I couldn't get information of RSS because of the error:
-[RSSItem setDescription:]: unrecognized selector sent to instance 0x7f875bd8e010"
and
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[RSSItem setDescription:]: unrecognized selector sent to instance 0x7f875bd8e010
I tried to make break points in RSSItem.h file and investigated this error.
But I don't find the cause...
The tutorial you are following is quite old and is based on iOS 6.
Since iOS 8 the NSObject protocol (which is inherited by all objects based on NSObject) has defined the description property as a read-only string. Properties cannot be overridden in a subclass, so your attempt to create a read/write description property won't work.
You should use some other property name, such as itemDescription rather than description.
My guess is that the property name 'description' collides with the 'description' read-only property of NSObject (and is therefore more or less a reserved name in Objective-C). Check your build log for a warning on the 'description' property.
I suggest renaming this RSSItem property to something else.
An app I recently started and working its keeps crashing with a SIGABRT message. The general message at the top of the debugger says:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0xb651580> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key parentEmail.'
... At the the bottom it says:
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Let me know if the "first throw call stack" info is necessary to solve this one.
Check and make sure that you didnt previously have a button/text field/label previously linked with an action, then deleted that item. The link still exists. Check and make sure that all your links match to existing items.
Usually this comes from an outlet link inside a xib with no corresponding class variable.
Did you remove a variable from a class without removing the link inside the xib?
I'm trying to develop an app that can show a PDF file. I try to complete this with ZoomingPDFViewer
http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010281-Intro-DontLinkElementID_2
code that is in the apple library. When I mix that code with my code some function doesn't work. And if I make it with the same code (don't mixed) the app throw this error:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setPDFPage:]: unrecognized selector sent to instance 0x6a833f0'
I'm in SDK 5.0 the requirements says that I should compile it in SDK 5.1 but the sample runs perfect, the problem is in my project but I don't know what is my error.
I'll appreciate if someone can help me with this strange error.
Check the Class setting in Storyboard.
View Controller -> Custom Class: ZoomingPDFViewerViewController and
Scroll VIew -> Custom Class: PDFScrollView
The second setting is the cause of your error.
You seem to be sending -setPDFPage: to an uncast self.view object. Try casting before calling like so:
[(PDFScrollView *)self.view setPDFPage:PDFPage];
Double check your connections in IB, if you are using it, or make sure you are initing a PDFScrollView* object in -loadView if not.