System.Exception: Error: called non-existent method System.Boolean UnityEngine.VR.VRSettings::get_enabled()
navigationView = (NavigationView) findViewById(R.id.nav_view);
headerview = navigationView.getHeaderView(0);
UserPhotoMenu = (ImageView) headerview.findViewById(R.id.UserPhotoMenu);
if (UserInfoRes.getInt("logo") == 1) {
Picasso.with(StatController.this)
.load("link/files/logos/" + user_id + ".jpg")
.placeholder(R.drawable.nophoto)
.transform(new CircleTransform())
.into(UserPhotoMenu);
}
let json = JSON(response.result.value)
let data = json["People0"].string
let dataNS = data?.data(using: .utf8)
do {
let cont = try JSONSerialization.jsonObject(with: dataNS!, options: []) as? [String: Any]
let contData = cont as! [String:String]
let newData = JSON(contData)
print(newData["Name"])
} catch {
}
{
"People0" : "{\"id\":\"1\",\"Name\":\"Alex\"}",
"People1" : "{\"id\":\"2\",\"Name\":\"Serg\"}"
}
let json = JSON(response.result.value)
if let data = json["People0"]["Name"].string {
print(data)
} else {
print(json["People0"]["Name"].error)
}
Optional(Error Domain=SwiftyJSONErrorDomain Code=901 "Dictionary["Name"] failure, It is not an dictionary" UserInfo={NSLocalizedDescription=Dictionary["Name"] failure, It is not an dictionary})
Нужен такой стиль с отступом и закруглением: