2011-11-03 3 views
0

ListView 선택에 문제가 있습니다.ListView 선택 및 TextField BackGroundColor

수량을 편집 할 수 있도록 ListView에 그린 TextField가 있습니다. 그러나 빨강 (또는 다른 색상) 배경을 지정해도 iOS5 업그레이드 (행 선택시)에서 BlueField 결과가 파란색 배경으로 변경됩니다.

해결 방법이 있습니까? 아니면 iOS5 버그/문제입니까? 나는 (UIListViewDelegate 사용) 목록보기 선택시 setBackGroundColor을 관리하여 해결 한 enter image description here

답변

0

지금은 스크린 샷을 추가 할 수 있습니다 사전

에서

감사합니다 ....

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    //Se ho la gestione del presa ordine su articoli valorizzo la quantità 
    if (Config.PresaOrdineSuArticoli == 1 && ![Testata.Spediti isEqualToString:@"S"]){ 
     //Posso provare ad accedere al controllo e cambiare il background durante la selezione 
     [(UITextField *) [[ListaArticoli cellForRowAtIndexPath:indexPath] viewWithTag:-4] setBackgroundColor:[UIColor whiteColor]]; 
    } 
}