"I am using two for loop one inside another.In the Innermost loop i am checking a 'if condition ' if condition will satisfy, the whole loop i mean both inner loop and outer loop should be stopped.But at the moment the below code can only stop the inner loop outer loop is not stopping.please give me solution."
for(int i=0; i<a_AllClothing.count;i++)
{
for (int j=0; j<tempAsset_array.count; j++) {
if([l_dressName rangeOfString:ImageName].location!=NSNotFound)
{
NSLog(@"Matched");
break;
}
}
}