-7
내가 엑스 코드 5.0.2하고 있어요, 내가 이렇게 같은 기본적인 질문을 저를 용서하십시오 초보자입니다 ...는 @ "페이스 북"오류
나는 cell.textLabel.text을 예상을 '= 식별자 다음 코드와 함께 '예상 식별자'오류가 m :
UITableViewCell *Cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
[Cell.textLabel.text = @"Facebook"];
[O_TableArray addObject:Cell];
[Cell release];
Cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
[Cell.textLabel.text = @"Twitter"];
[O_TableArray addObject:Cell];
[Cell release];
Cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
[Cell.textLabel.text = @"Tumblr"];
[O_TableArray addObject:Cell];
[Cell release];
Cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
[Cell.textLabel.text = @"Email"];
[O_TableArray addObject:Cell];
[Cell release];
나는 내가 잘못 했어,하지만 당신은 여유가있을 어떤 조언을 부탁드립니다 모르겠어요.
시간과 고려에 미리 감사드립니다.
왜 많은 셀을 생성합니까? 다음 몇 가지 과제는 다음과 같습니다. 1) Objective-C를 배우고, 임의의 코드를 이해하지 않고 복사하십시오. 2) UITableViews를 채우는 방법을 배웁니다. 3) 코딩 규칙을 고수하십시오. – vikingosegundo
나는이 질문을 닫으려는 모든 사람에게 downvoting & vote에 동의하지 않습니다. 예, 루키 실수입니다. OP는 튜토리얼이나 수업을 분명히 완료해야합니다.하지만 오류 메시지와 잘못된 코드가 포함 된 올바른 형식의 질문입니다. –