-
Notifications
You must be signed in to change notification settings - Fork 9
/
RSAvatarController.h
38 lines (28 loc) · 1.28 KB
/
RSAvatarController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// RSAvatarController.h
//
// Created by Rex Sheng on 7/6/12.
//
#import <UIKit/UIKit.h>
@protocol RSMoveAndScaleTrait <NSObject>
- (void)cancel;
- (void)choose;
@end
@protocol RSAvatarControllerDelegate;
@interface RSAvatarController : NSObject
- (void)openActionSheetInController:(UIViewController *)viewController;
@property (nonatomic, readonly) BOOL takingAvatar;
@property (nonatomic, strong, readonly) UIImagePickerController *imagePicker;
@property (nonatomic, weak) id<RSAvatarControllerDelegate> delegate;
@end
@protocol RSAvatarControllerDelegate <UINavigationControllerDelegate>
- (void)avatarController:(RSAvatarController *)controller pickedAvatar:(UIImage *)avatar;
- (UIView *)avatarController:(RSAvatarController *)controller overlayForMoveAndScale:(id<RSMoveAndScaleTrait>)trait;
- (CGRect)popoverRectForAvatarController:(RSAvatarController *)controller;
- (CGSize)destinationImageSizeForAvatarController:(RSAvatarController *)controller;
@optional
- (CGSize)destinationImageUploadSizeForAvatarController:(RSAvatarController *)controller;
- (void)avatarControllerDidCancel:(RSAvatarController *)controller;
- (UIView *)overlayForAvatarControllerImagePicker:(RSAvatarController *)controller;
- (UIViewContentMode)contentModeForAvatarController:(RSAvatarController *)controller;
@end