1
UITextViewでデータを入力するときに、バブルの自動完成に関する混乱があります。UITextViewバブルの自動配置
私が観察したことは、フレームの起源に応じて、オートコンプリートバブルが上または下に来ることです。スクロールエネーブルがNOに設定されている場合、固定ロケーションはありません。
ここに2つのリンクがあります。コードは()
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];
誰もが、この観察された行動を説明することができるのinitで書かれています?