1
我想在DialogViewController上設置標題樣式。控制器的內容是從JSON響應中加載的。在DialogViewController上設計標題
如何設置帶有背景顏色等的標題元素?
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;