i have different apps where I use an alert message, so far never an issue.
Now I get this error. I usually call the alertview from the didbecomeactive method.
Can someone help me with this issue. Just getting started coding, so keep it slow :)
Many thanks
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSetM length]: unrecognized selector sent to instance 0xa9737c0'
One of the object your calculating length is converting to NSSetM object. Check the object which you are calculating length property of it, which is releases that object.Please use retain of it. or properly release the object after using it.
Related
Previously I used iOS 5 to draw routes between 2 locations and update the current location continuously while navigating using Google Maps API,it was working fine but now after i upgraded to iOS 6, nothing is working I am not able to view the map also, Given below is the error i receive when i try to load the map,
-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x16665e40
2013-05-24 12:07:26.522 DriverApp[988:c07] WebKit discarded an uncaught exception in the webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: delegate: <NSInvalidArgumentException> - [__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x16665e40
Can anyone please help me? I am meeting my deadline and I'm really confused on how to proceed further.
Try to use LocalizedCurrentLocation class for ios 5 From this link localized-current-location-string-for-iphone-apps
Also See more details from this link answer how-to-draw-routes-on-maps-in-ios-6
I searched SO but didnt find any accurate answer for this.
I am implementing Event Kit in my app.I am programatically implementing creation of events,
But I am not specifying any calendar there.Then I am using the EKEventViewController to Edit my events.I am using the Kal library as well to show the calendar.Every time I edit the second or 3rd so on event, or event delete the event, My app crashes, It is saying that event store is changed.I am not able to solve this issue.
Can anyone help me in this.
Here is the Crash Log..
terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM eventStoreChanged:]: unrecognized selector sent to instance 0x1fc7f040
Thanks
I had found the answer myself...If someone faces the same situation..Then here you go..
You need to set the eventstorechanged delegate to nil. And your problem would be solved.
Cheers
Sanjay
I'm programming a metronome app that establishes a Bluetooth connection through GameKit and the PeerPickerController and then allows one device to send the controls through to the other, so if start is pressed on one device, the metronome starts on both.
The App loads fine and searches for other devices and says that its connected in the debugger window of Xcode, but then crashes immediately with this error:
wait_fences: failed to receive reply: 10004003
2012-05-27 20:51:50.820 MetroConnect[5689:707] -[MetroConnectViewController session:didFailWithError:]: unrecognized selector sent to instance 0x1793f0
2012-05-27 20:51:50.824 MetroConnect[5689:707] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MetroConnectViewController session:didFailWithError:]: unrecognized selector sent to instance 0x1793f0'
* First throw call stack:
(0x3126388f 0x375a1259 0x31266a9b 0x31265a83 0x311c0650 0x34141b5f 0x311c21fb 0x31b7f747 0x31237ad3 0x3123729f 0x31236045 0x311b94a5 0x311b936d 0x33233439 0x3091ccd5 0x5023 0x4fc8)
terminate called throwing an exception(lldb)
I was wondering if anyone could tell me where I'm going wrong? I have made a different App in a similar way that sends chat messages between two devices and that works fine and I can't see any differences between this implementation and the Metronome implementation.
It seems as though you are the GKSession delegate, yet don't implement the required delegate methods. They are required for a reason, after all. Implement the session:didFailWithError: method with something like this and check that you have the rest of them implemented properly:
- (void)session:(GKSession *)session didFailWithError:(NSError *)error {
NSLog(#"Session connection failed with error %#",[error localizedDescription]);
}
Im sorta new to bluetooth programming on the iPhone and i wanted to set up a PeerToPeer bluetooth connectivity between two iOS devices. I followed the steps in this tutorial
http://www.devx.com/wireless/Article/43502/0/page/1
and everything happens as it should until i get the accept or decline option when another device has been detected.
As soon as i choose accept, the app crashes on BOTH devices. And the error message shown is this:-
wait_fences: failed to receive reply: 10004003
2012-03-05 15:40:25.809 Bluetooth[204:707] -[ViewController session:didFailWithError:]: unrecognized selector sent to instance 0x367fe0
2012-03-05 15:40:25.811 Bluetooth[204:707] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController session:didFailWithError:]: unrecognized selector sent to instance 0x367fe0'
Anybody know whats going on?
Thanks in advance!
Just copy pasting this from coments below in the link you posted:
In case people weren't able to build and run successfully, you need to import the GameKit framework (rightclick frameworks folder > existing frameworks > GameKit.framework)
Add, to the BluetoothViewController.h file:
#import "GameKit/GKSession.h"
#import "GameKit/GKPeerPickerController.h"
Found out the problem. Made a rather silly mistake!
Ive written a method as follows
- (void)peerPickerController:(GKPeerPickerController *)picker
didConnectPeer:(NSString *)peerID
toSession:(GKSession *) session {
and in it i set up the app to receive data via bluetooth using
[session setDataReceiveHandler:self withContext:nil];
I thought i would check if the connection is established first and then think about the data transfer. But turns out you can't do that coz the data handler has been set and i had not implemented it in self. When i did write that though, it worked fine!
Hope, this stope people from committing such obvious mistakes!
I'm writing an MKMapKit app that allows the user to drag around an annotation. Everything seems to work for the most part, but it crashes every now and then with the following message:
2009-09-27 12:34:18.903 iParkNow![7181:207] *** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320
2009-09-27 12:34:18.907 iParkNow![7181:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320'
I've had no luck googling for useful information and the iphone forums have nothing useful either. I haven't attached any code since its a bit long. Just wondering if anyone how any idea what would cause this error. Thanks in advance!
Do you try to reverse geocode more than one location at a time? This will cause the crash as of 3.1...So if the user is dragging and you start making calls to reverse geo code and keep them open as so many of them would be processing at one time then thats probably your problem.