2012-03-12 4 views
1

UITextView에서 데이터를 입력하는 동안 자동 완성 버블 위치와 관련하여 혼란 스럽습니다.UITextView 자동 완성 버블 위치

내가 본 것은 프레임의 원점에 따라 자동 완성 버블이 위 또는 아래에 있음을 나타냅니다. 고정 위치가 없으면 이 제공되고 scrollEnabled는 NO으로 설정됩니다.

다음은 두 링크입니다. 코드가 초기화로 작성()

http://www.flickr.com/photos/[email protected]/6975525835/

UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 150, 320, 41)] autorelease]; 
view.backgroundColor = [UIColor grayColor]; 
[self.view addSubview:view]; 
UITextView *growingTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 10, 200, 27)]; 
growingTextView.font = [UIFont fontWithName:@"Helvetica" size:13]; 
growingTextView.scrollEnabled = NO; 
[view addSubview:growingTextView]; 

http://www.flickr.com/photos/[email protected]/6975525727/

UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 50, 320, 41)] autorelease]; 
    view.backgroundColor = [UIColor grayColor]; 
    [self.view addSubview:view]; 
    UITextView *growingTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 10, 200, 27)]; 
    growingTextView.font = [UIFont fontWithName:@"Helvetica" size:13]; 
    growingTextView.scrollEnabled = NO; 
    [view addSubview:growingTextView]; 

는 사람이 행동을 관찰 설명 할 수 ???

답변

0

나는 popovers와 거품이 항상 사용의 편의를 위해 자동으로 위치를 조정한다는 것을 알고 있습니다. 이미 Apple의 코드를 따르고 있으며 두 이미지 모두 버블 위치가 의미가 있습니다.