for
루프가있는 objective-c에 문제가 있습니다. 내가 에 대한 cicle 차단제, 어떻게 해결할 수 있습니까?
for (NSDictionary *item in allItems) {
[self print:item];
};
루프가 종료 화면
의 요소를 인쇄하기 전에 루프의 끝을 기다리고 싶지, 모든 인쇄,하지만 난 루프 동안 인쇄를하고 싶습니다.어떻게 해결할 수 있습니까?
내가 성공없이 블록 시도 인쇄 방법 :
-(void)print:(NSDictionary*)item{
NSString *message=[item objectForKey:@"message"];
if(message){
int userid = 0;
NSString *nome=[item objectForKey:@"name"];
NSString *sesso=[item objectForKey:@"sex"];
NSString *foto=[item objectForKey:@"photo"];
.........
귀하의 질문에 전혀 의미가 없습니다. – vikingosegundo