mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The corrections are: - Change the UIFont's API from '?' to '!'. These APIs are almost never get checked. - Change the "options" array parameter to being optional. Swift SVN r20723
46 lines
1.3 KiB
Objective-C
46 lines
1.3 KiB
Objective-C
@import Foundation;
|
|
|
|
@protocol UIApplicationDelegate <NSObject>
|
|
@end
|
|
|
|
@interface UIResponder : NSObject
|
|
@end
|
|
|
|
@interface UIView : UIResponder
|
|
@end
|
|
|
|
typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) {
|
|
UIViewAnimationOptionLayoutSubviews = 1 << 0,
|
|
UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20,
|
|
};
|
|
|
|
@interface UIView(UIViewAnimationWithBlocks)
|
|
|
|
+ (void)animateWithDuration:(NSTimeInterval)duration
|
|
delay:(NSTimeInterval)delay
|
|
options:(UIViewAnimationOptions)options
|
|
animations:(void (^)(void))animations
|
|
completion:(void (^)(BOOL finished))completion;
|
|
|
|
@end
|
|
|
|
@interface UIActionSheet : UIView
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title
|
|
delegate:(id)delegate
|
|
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
destructiveButtonTitle:(NSString *)destructiveButtonTitle
|
|
otherButtonTitles:(NSString *)titles, ...;
|
|
|
|
@end
|
|
|
|
@interface UIAlertView : UIView
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title
|
|
message:(NSString *)message
|
|
delegate:(id)delegate
|
|
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
otherButtonTitles:(NSString *)titles, ...;
|
|
|
|
@end
|