Open sachbryk opened 9 years ago
just add a new empty view controller. and connect it with swrevealviewcontrollerset segue named "sw_right"
@kocyigityunus why would he want to do that? Why not make it configurable, so one could use the segues one want? He could override the method as specified in the comment above though, but therefore he'd need to subclass or manipulate the provided code which is both annoying IMHO
I have the same error BUT on hardware (iPad4,iPhone4S,iPhone5,iPhone6) it does not crash.
Same for me, app crashes only on iPad referencing the missing segue
@elsesiy i was in rush. I think this is happening because genius apple is not based nsinvalidargumentexception from nsexception as you can see there : https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/constant_group/General_Exception_Names
We need to catch nsinvalidargumentexception also. I can try this and provide a gist soon.
Ok, I've created a simple test case which tries to throw an NSInvalidArgumentException but all exceptions thrown are NSExceptions. The try - catch - finally structure catches the exceptions. How do I generate an NSInvalidArgumentException? I've tried performing segues which do not exist (which clearly is the case here).
OS X 10.10.3, Xcode 6.3 (6D570), iOS 8.3 (simulator).
If you add in an empty view controller to "sw_right", the app will now open an empty window when you swipe to the left.
Update to XCode 6.3.1 the bug isn't in simulated devices of iphone 5s and above. this is a apple simulator bug.
Yes, it's simulator bug, but even for Xcode 6.3.1 the bug is still here
Like I said. Choose iPhone 5s and later devices for simluator testing. the bug isn't there. Only iPhone5 and lower.
2015-04-23 10:06 GMT+02:00 sx notifications@github.com:
Yes, it's simulator bug, but even for Xcode 6.3.1 the bug is still here
— Reply to this email directly or view it on GitHub https://github.com/John-Lluch/SWRevealViewController/issues/402#issuecomment-95484754 .
just comment it out if you're not using it. it's a bug from apple.
I can't comment it cause I use this segue with another view controller. At this moment I just added empty view controllers.
if you use swrevealcontroller's pan gesture you can pan to the empty view controller. you better check if this can happen to you.
No need to create a new empty view controller just change the segue as custom and give segue class as swrevealcontrollersetcontroller because till xcode6.4 (my latest xcode version) by default the segue is show which won't be supported for swrevealcontrollersetcontroller.... Happy coding. I hope it helped some one like me
If I generate my project in Xcode 6.3 and run it in the simulator, I get this error (screenshot). There are no errors if the project generated in Xcode 6.2 or run on the iPhone.