我想在我的 DialogViewController 上设置标题的样式。控制器的内容是从 JSON 响应中加载的。
如何使用背景颜色等设置标题元素的样式?
string responseString = string.Empty;
Uri uri = new Uri ("http://loca!host.com/sample.json");
HttpWebRequest request = new HttpWebRequest (uri);
request.Method = "GET";
HttpWebResponse response = request.GetResponse () as HttpWebResponse;
var obj = JsonValue.Load (new StreamReader (response.GetResponseStream())) as JsonObject;
if (obj != null) {
var root = JsonElement.FromJson (obj);
_rootVC = new DialogViewController (root);
var jsonSection = root["section-1"] as Section;