나는 정말로 좌절하고있다! 나는 지금 새로운 문제가, 내가 원하는 모든)레이블의 텍스트 값을 어떻게 봅니까?
lblMessage.Text = "30 초"는 다음 몇 가지 코드 을, 그렇지 않으면 다른 코드 내가 예상 오류를 얻을
if (lblMessage.text isEqualToString:@"30 Seconds")
{
NSString *strPlayerAtTable = [[NSString alloc] initWithFormat:@"%@ at table", ActivePlayer];
lblMessage.text = strPlayerAtTable;
}
else
if (nStopClockPos == 30)
{
lblTime.textColor = [UIColor yellowColor];
lblMessage.text = @"30 Seconds";
}
을 말하는 것입니다 before isEqualToString
내가 새 문자열 변수에 넣었습니까?
건배
폴
, 당신은'strPlayerAtTable' 누출된다. '[strPlayerAtTable release];를'lblMessage.text'에 할당 한 후 추가하십시오. –