Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objective-C project use problem #55

Open
0x1306a94 opened this issue Apr 27, 2017 · 0 comments
Open

Objective-C project use problem #55

0x1306a94 opened this issue Apr 27, 2017 · 0 comments

Comments

@0x1306a94
Copy link

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant