【发布时间】:2016-06-22 19:54:15
【问题描述】:
我有一个 xamarin iOS 项目,我在其中显示一个带有 x 行文本的单元格。我目前这样定义我的单元格:
public override UITableViewCell GetCell (UITableView tableView, Foundation.NSIndexPath indexPath)
{
UITableViewCell cell = tableView.DequeueReusableCell ("cells");
...
cell.TextLabel.Lines = 0;
cell.TextLabel.Text = "Bold: " + info1 + "Bold: " + info2;
...
}
显示单元格如下:
+----------------------+
|Bold: Testing |
|Bold: Testing2 |
+----------------------+
我希望能够仅将Bold 文本转换为粗体字体,并将其他信息保留为普通文本字体。考虑到我目前的方法,这可能吗?
【问题讨论】:
标签: c# ios swift xamarin fonts