Files
youle_app_ios/msext/Class/record/CustomWindow.m
2023-12-27 20:38:37 +08:00

38 lines
883 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// CustomWindow.m
// AmrConvertAndRecord
//
// Created by Jeans on 3/29/13.
// Copyright (c) 2013 Jeans. All rights reserved.
//
#import "CustomWindow.h"
@implementation CustomWindow
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
-(void)sendEvent:(UIEvent *)event {
@try {
if (event.type == UIEventTypeTouches) {//发送一个名为nScreenTouch自定义的事件
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:@"nScreenTouch" object:nil userInfo:[NSDictionary dictionaryWithObject:event forKey:@"data"]]];
}
[super sendEvent:event];
} @catch (NSException *exception) {
NSLog(@"%@",exception);
} @finally {
NSLog(@"@finally");
}
}
@end