連絡先アプリケーション (iPad) で Split View Controller を使用しています。
では、ユーザーの名前、会社名、電話番号、電子メール ID を表示するためにDetailedViewController
いくつかを使用しています。UILabels
メソッドではinitWithNibName
、次のコードを記述します。
_mob_Tele = [[UILabel alloc]init];
_mob_Tele.textColor = [UIColor colorWithRed:67/255.0f green:109/255.0f blue:236/255.0f alpha:1.0f];
_mob_Tele.font = [UIFont boldSystemFontOfSize:16];
_mob_Tele.backgroundColor = [UIColor whiteColor];
_mob_Tele.layer.cornerRadius = 5;
[_mob_Tele.layer setMasksToBounds:YES];
ビューメソッドの構成では、次のように記述しました。
CGRect frame4 = CGRectMake(236, 250, 290, 30);
_mob_Tele.frame = frame4;
_mob_Tele.text = mobTele;
また、名前、会社を表示するラベルがいくつかあります。でセルを選択すると、これらのフィールドが更新されますMasterViewController
。しかし、 e のUILabels
ような_mob_Tel
ものは同時に現れません。cell1を選択すると、名前、会社の詳細UILabel
が読み込まれますが、読み込まれません_mob_Tele
UILabel
。cell2を選択すると、 cell1_mob_Tele
UILabel
が表示されます。
助けてください!ありがとう!