title: How do I use Key-Value Coding in Swfit 4.0?
body: <p>I never used Swift4 before, and dont know how to use KVC in it.<br>
  I try to create model with Dictionary, here the code:</p>
  
  <pre><code>class Person : NSObject {
      var name: String = ""
      var age: Int = 0
  
      init(dict: [String : Any]) {
          super.init()
          self.setValuesForKeys(dict)
      }
  }
  
  let dict: [String : Any] = ["name" : "Leon", "age" : 18]
  let p = Person(dict: dict)
  print(p.name, p.age)
  </code></pre>
  
  <p>There I get two question:<br>
  1. Why dont I using <code>AnyObject</code>? <code>"Leon"</code>and<code>18</code> was infer to <code>String</code> and <code>Int</code>, does it using in KVC?<br>
  2. <code>@objc var name: String = ""</code> , this form is worked, but I can not understand it.<br>
  <br>
  Thanks for all helps.</p>