message:@"Unable to communicate with sled - unknown communication error."
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[sledAlert show];
*/
UIAlertController*sledAlert=[UIAlertControlleralertControllerWithTitle:@"Connection Error"message:@"Unable to communicate with sled - unknown communication error."preferredStyle:UIAlertControllerStyleAlert];
message:@"Unable to communicate with sled - incompatible sled firmware."
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[sledAlert show];
*/
UIAlertController*sledAlert=[UIAlertControlleralertControllerWithTitle:@"Connection Error"message:@"Unable to communicate with sled - incompatible sled firmware."preferredStyle:UIAlertControllerStyleAlert];
message:@"Unable to communicate with sled - battery depleted."
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[sledAlert show];
*/
UIAlertController*sledAlert=[UIAlertControlleralertControllerWithTitle:@"Connection Error"message:@"Unable to communicate with sled - battery depleted."preferredStyle:UIAlertControllerStyleAlert];
//Page handles username/password errors; now handle deeper errors
else{
NSLog(@"3: %@",url);
/*
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"FATAL PAGE ERROR" message:@"Page not recognized, cannot proceed. App will no longer work as expected." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
*/
UIAlertController*alert=[UIAlertControlleralertControllerWithTitle:@"FATAL PAGE ERROR"message:@"Page not recognized, cannot proceed. App will no longer work as expected."preferredStyle:UIAlertControllerStyleAlert];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"FATAL PAGE ERROR" message:@"Page not recognized, cannot proceed. App will no longer work as expected." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
*/
UIAlertController*alert=[UIAlertControlleralertControllerWithTitle:@"FATAL PAGE ERROR"message:@"Page not recognized, cannot proceed. App will no longer work as expected."preferredStyle:UIAlertControllerStyleAlert];
@@ -349,8 +371,16 @@ static int BOOK_ID_LENGTH = 14;
[selfresetScanHistory];
}else{
/*
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Invalid Book ID" message:@"Book ID must be numeric" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
*/
UIAlertController*alert=[UIAlertControlleralertControllerWithTitle:@"Invalid Book ID"message:@"Book ID must be numeric."preferredStyle:UIAlertControllerStyleAlert];
message:@"You must select a collection to continue."
...
...
@@ -130,6 +131,13 @@
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
*/
UIAlertController*alert=[UIAlertControlleralertControllerWithTitle:@"No Collection Selected"message:@"Please select a collection to continue."preferredStyle:UIAlertControllerStyleAlert];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"FATAL PAGE ERROR" message:@"Page not recognized, cannot proceed. App will no longer work as expected." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
*/
UIAlertController*alert=[UIAlertControlleralertControllerWithTitle:@"FATAL PAGE ERROR"message:@"Page not recognized, cannot proceed. App will no longer work as expected."preferredStyle:UIAlertControllerStyleAlert];