0

我在我的联系人应用程序(iPad)中使用拆分视图控制器。

DetailedViewController我使用一些UILabels来显示用户姓名、公司名称、电话号码、电子邮件 ID。在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. 但有些UILabels_mob_Tele 并没有同时出现。当我选择cell1它的名称详细信息时,公司UILabel已加载但未加载_mob_Tele UILabel。当我选择cell2时,出现cell1 _mob_Tele UILabel

请帮忙!谢谢!

4

0 回答 0