|
From: | Amr Aboelela |
Subject: | performSelectorOnMainThread: issue |
Date: | Tue, 3 Mar 2015 19:09:13 -0800 |
- (BOOL) runMode: (NSString*)mode beforeDate: (NSDate*)date
{
...
d = [self limitDateForMode: mode];
if (d == nil)
{
[arp drain];
return NO;
}
...
}
I did:
- (BOOL) runMode: (NSString*)mode beforeDate: (NSDate*)date
{
...
d = [self limitDateForMode: mode];
if (d == nil)
{
[self acceptInputForMode:mode beforeDate:date];
[arp drain];
return NO;
}
...
}
i.e. I moved this line [self acceptInputForMode:mode beforeDate:date]; inside the if statement
[Prev in Thread] | Current Thread | [Next in Thread] |