Software engineer by profession, iOS developer by chance, freelancer by luck, Photographer by hobby and dad for my son

You are visitor:

tumblr visit counter

Catching Elephant is a theme by Andy Taylor

 

UIDatePicker Exception ‘whoa! too many rows for column: 2’

I wasted couple of minutes to figure out why am i getting the following exception

 *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘whoa! too many rows for column: 2’

It turns out that I was getting this exception because I was being sent invalid date from server and Date picker was unable to show my desire date (December 20, 5828963).

To avoid this issue, all you need is to add check for valid date.