SweetAlert-iOS icon indicating copy to clipboard operation
SweetAlert-iOS copied to clipboard

Objective-C project use problem

Open 0x1306a94 opened this issue 8 years ago • 0 comments

  • 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

0x1306a94 avatar Apr 27 '17 14:04 0x1306a94