Changing interface orientation from portrait to landscape causes crash

548 Views Asked by At

I have created a universal app that is landscape only using Xcode 7.2 (Landscape left, Landscape right and Require full screen is checked). When I run the application on the iPad simulator, it is showing portrait only. When I tried to change the orientation to landscape it crashes.

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x101c2daf0'"

1

There are 1 best solutions below

2
On

Without seeing your code, it's tough to tell exactly. My guess is somewhere you are trying to get the length of what you think is an NSString but it's actually NSNull. From my experience, this would be most likely to occur in some sort of network parsing.