2009-10-03 6 views
0

는 축소 된 코드입니다 :의 UITextField Crazyness

- (void)viewDidLoad { 
     [super viewDidLoad]; 
     currentLocation = [[UITextField alloc] init]; 
     currentLocation.delegate = self; 
    ........ 
    } 

    -(void) setState:(NSString *)state andCity: (NSString *)city { 

     //currentLocation.text = [NSString stringWithFormat:@"%@, %@",state,city]; 
     currentLocation.text = @"what the shnizzle?"; 

     NSLog(@"state = %@, and city = %@",state,city); 
     NSLog(@"currentLocation.text = %@",currentLocation.text); 
} 

여기에 콘솔 출력입니다 :

2009-10-03 16:00:06.311 iParkNow![1061:207] state = (null), and city = New York 
2009-10-03 16:00:06.315 iParkNow![1061:207] currentLocation.text = (null) 

사람이이 가능 얼마나 어떤 생각을 가지고?

답변

1

현재 위치는 nil입니다. 제대로 설정되었는지 확인 했습니까?