Skip to content

Minor UIAlertView #131

Description

@Ibrahimhass

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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions