我在sqlite数据库表中有三个字段POOL_A,POOL_B和POOL_C在poool中我已经开始第一个问题而池B和POOL C是空的我必须为特定的概念代码创建会话,如DC_C1,并且还必须查找特定的会话完成次数SESSION_NUMBER FOR DC_C1,我发送的算法更多了解问题
(IBAction)startButton:(id)sender {
ConceptShoeViewController * show = [[ConceptShoeViewController alloc] initWithNibName:@“ConceptShoeViewController”bundle:nil]; [self.navigationController pushViewController:show animated:YES];
[self selectPoolDatabase];
int countA = lA.count; NSLog(@“计数@%d”,countA); NSLog(@“A%@”的问题,lA);
int countB = lB.count; NSLog(@“count b @%d”,countB);
int countC = lC.count; NSLog(@“count c @%d”,countC);
NSArray *cookieJar = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies];
for( NSHTTPCookie *cookie in cookieJar)
{
if( [[cookie name] compare: @"SESSION_NUMBER"] == NSOrderedSame)
{
}
}
if (countA+countB <= 10)
{
[mainArray addObjectsFromArray:lA];
}
否则if(countB&lt; 10)
{
if (countA<10)
{
}
else
{
}
}
否则 {