Programowo programowo anulować program UIAlertView
? Jest to kod, który używam, aby pokazać UIAlertViewAnuluj program UIAlertView programowo
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Save Background" message:@"Downloading..." delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil];
CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 70.0);
[myAlertView setTransform:myTransform];
[myAlertView show];
+1 do Ciebie za bycie o 20 sekund szybciej niż podczas pisania ... ["cancelButtonIndex"] (https://developer.apple.com/library/ios/documentation/UIKit/Reference/ UIAlertView_Class/UIAlertView/UIAlertView.html # // apple_ref/occ/instp/UIAlertView/cancelButtonIndex) nie zawsze będzie "-1". –