私の古いプロジェクトの1つを見つけて、少し前とは少し異なることを発見しました。誰もが疑問に思う場合
cell = [self.aTableView dequeueReusableCellWithIdentifier:kPlaceCell];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle: UITableViewCellStyleValue1 reuseIdentifier:kPlaceCell] autorelease];
}
//PlaceField = An Instance of UITextfield, which I implemented as classvar.
[self.placeField removeFromSuperview];
// setting frame and font for your textfield. If you have static text in your Textlabel you should have an higher x so maybe CGRectMake (1, 100, 218, 39)
self.placeField.frame = CGRectMake(1, 1, 318, 39);
self.placeField.font = [UIFont boldSystemFontOfSize:18.0f];
//Adding your UITextfield to the UITableViewCell contentView
[cell.contentView addSubview: self.placeField];
}
:ここで私が何をしたかである私は、ユーザーがユーザーアカウントを作成できるように、こののtableViewを使用し、(名前、生年月日、...)のためのプレースホルダを使用するので、私は」なかったの静的テキストが必要です。 ^^
これがあなたのためにどのように機能するか、さらに説明が必要な場合は教えてください
ご返信ありがとうございます。それについての参考資料はありますか? – doh