Re: iPhone: validate a NSString for US zipcode
Re: iPhone: validate a NSString for US zipcode
- Subject: Re: iPhone: validate a NSString for US zipcode
- From: Sherm Pendley <email@hidden>
- Date: Thu, 7 Jan 2010 12:20:47 -0500
On Thu, Jan 7, 2010 at 11:53 AM, Eric E. Dolecki <email@hidden> wrote:
> I don't care about the city, just that the zip code will work. On an iPhone
> testing against an array of 42,305 values... could that be pretty quick?
> Seems like a large set to go through looking. I'm sending the value to a
> webservice to return weather data.
Doesn't the service return an error if you give it an invalid zip
code? You could simply check for that. Doing so would avoid having to
do the check on the phone, and also having to update your app whenever
zip codes change.
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden