Skip to content

Objective-C project use problem #55

@0x1306a94

Description

@0x1306a94
  • Objective-C programs are using SweetAlert.
  • After the update Xcode 8.3.2.
  • Xcode 2.3 is no longer compatible with Swift version 2.3.
  • then SweetAlert update for Swift grammar version 3.0.
  • In introducing SweetAlert Objectiv - C project, compiled generated Objective-C class
......

#if defined(__has_feature) && __has_feature(modules)
@import UIKit;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
@class NSCoder;
@class UIButton;
@class NSBundle;

SWIFT_CLASS("_TtC4demo10SweetAlert")
@interface SweetAlert : UIViewController
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (void)pressed:(UIButton * _Null_unspecified)sender;
- (void)viewWillLayoutSubviews;
- (SweetAlert * _Nonnull)showAlert:(NSString * _Nonnull)title SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end


@interface UIColor (SWIFT_EXTENSION(demo))
@end

#pragma clang diagnostic pop
  • Can only use showAlert: API Can't meet the project requirements
  • Then I translated into Objective-C language version
  • If the infringement to you, please contact me, I will delete it
  • SJAlertView

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions