--- a/project_files/HedgewarsMobile/Classes/HoldTableViewCell.m Fri Dec 29 22:37:31 2017 +0100
+++ b/project_files/HedgewarsMobile/Classes/HoldTableViewCell.m Sat Dec 30 01:22:11 2017 +0100
@@ -26,14 +26,14 @@
#define SWIPE_DRAG_HORIZ_MIN 10
#define SWIPE_DRAG_VERT_MAX 40
--(id) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
+- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
delegate = nil;
}
return self;
}
--(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
+- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
time = touch.timestamp;
@@ -42,7 +42,7 @@
[super touchesBegan:touches withEvent:event];
}
--(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
+- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
if ( touch.timestamp - time < 0.25 ) {
@@ -55,7 +55,7 @@
[super touchesCancelled:touches withEvent:event];
}
--(void) holdAction {
+- (void)holdAction {
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(holdAction:onTable:)])
{
UITableView *tableView = [self findTable];
@@ -66,9 +66,4 @@
}
}
--(void) dealloc {
- self.delegate = nil;
- [super dealloc];
-}
-
@end