views:

207

answers:

0

I have an app that has a "store locater" in it. If there is no store within the range being searched there is a UIAlert that shows saying there is no store in that range. It works in simulator mode, but not on my iphone...any ideas?

Here is the code:

if([cities count] == 0) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"There Are No Stores Currently Within Your Selected Distance Range From You. Please Go Back And Select a Different Distance Range, Or Go To www.GoodFeet.com." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alert show]; [alert release];

}
else
{
 StoresTableViewController *viewController = [[StoresTableViewController alloc] initWithDistances: distances cities:cities storeDetails: storeDetails storeMapLinks: storeMapLinks];
 [self.navigationController pushViewController:viewController animated:YES];
 [viewController release];
}

}