获取变量值

  • 获取变量值
    • 通用的:valueForKey
      • po [someObj valueForKey: @"keyName"]
        • 举例
          po [$x0 valueForKey: @"v_Data"]
          
          (lldb) po [0x286d8a070 valueForKey: @"_phoneNumber"]
          <WAPhoneNumber: 0x28245e3c0> ({ 1 8784650468 })
          
          (lldb) po [0x112994040 valueForKey: @"_registrationIdData"]
          <45534916>
          
          (lldb) po [0x282170b80 valueForKey: @"_baseURLString"]
          https://v.whatsapp.net/v2/exist
          
    • 单个类自己的函数=Selector
      • dict
        • objectForKey
          po [$x0 objectForKey: @"v_Data"]
          
        • objectForKeyedSubscript
          po [$x0 objectForKeyedSubscript: @"v_Data"]
          

results matching ""

    No results matching ""