This repository was archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathqiviewdelegate.mm
More file actions
45 lines (34 loc) · 1.32 KB
/
qiviewdelegate.mm
File metadata and controls
45 lines (34 loc) · 1.32 KB
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
39
40
41
42
43
44
45
#include <QtCore>
#import "qiviewdelegate.h"
@interface QIViewDelegate ()
@end
@implementation QIViewDelegate
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (alertViewClickedButtonAtIndex)
alertViewClickedButtonAtIndex(buttonIndex);
}
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex{
if (alertViewDismissWithButtonIndex)
alertViewDismissWithButtonIndex(buttonIndex);
}
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (actionSheetClickedButtonAtIndex) {
actionSheetClickedButtonAtIndex(buttonIndex);
}
}
- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex {
if (actionSheetDidDismissWithButtonIndex) {
actionSheetDidDismissWithButtonIndex(buttonIndex);
};
}
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
if (imagePickerControllerDidFinishPickingMediaWithInfo) {
imagePickerControllerDidFinishPickingMediaWithInfo(picker,info);
}
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
if (imagePickerControllerDidCancel) {
imagePickerControllerDidCancel(picker);
}
}
@end