ios - Calling method after for loop is finished -


i have simple for loop adds objects nsmutablearray need utilize in method after loop finished. know how can detect when for loop "ready"? or [map addannotations:self.namelist]; won't called until loop running don't need care it?

    if (objects) {          (pfobject *obj in objects)          {              [self.namelist addobject:obj[@"name"]];          }             [map addannotations:self.namelist];       } 

most of executions sequential in nature, therefore loop completed first, [map addannotations: self.namelist]; method called.

so don't need care it.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

Maven Javadoc 'Cannot find default setter' and fails -