Open Ibrahimhass opened 4 years ago
Original Objective-C code: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No Camera" message:kLocaleFeedbackCameraUnavailable delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; Converted Swift code: let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK", otherButtonTitles: "") Converted Swift code with the correct functionality: let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK")
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No Camera" message:kLocaleFeedbackCameraUnavailable delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK", otherButtonTitles: "")
let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK")
Original Objective-C code:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No Camera" message:kLocaleFeedbackCameraUnavailable delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
Converted Swift code:let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK", otherButtonTitles: "")
Converted Swift code with the correct functionality:let alert = UIAlertView(title: "No Camera", message: kLocaleFeedbackCameraUnavailable, delegate: self, cancelButtonTitle: "OK")