<span style= "Background-color:rgb (255, 255, 255); Color:rgb (51, 51, 51); Font-family:arial, ' Liberation Sans ', ' Dejavu Sans ', Sans-serif; font-size:14px; line-height:17.804800033569336px; " ></span><pre name= "code" class= "plain" >var ivar = [:]ivar.classname//__nsdictionaryivar i = 1i.classname//Error: ' Int ' does not has a member named ' ClassName '
<span style= "Background-color:rgb (255, 255, 255); Color:rgb (51, 51, 51); Font-family:arial, ' Liberation Sans ', ' Dejavu Sans ', Sans-serif; font-size:14px; line-height:17.804800033569336px; " >if you want to get the type of a primitive and you had to use </span><code style= "padding:1px 5px; Font-family:consolas, Menlo, Monaco, ' Lucida Console ', ' Liberation Mono ', ' Dejavu Sans mono ', ' bitstream Vera Sans Mono ', ' Courier New ', monospace, serif; Color:rgb (221, 17, 68); Background-color:rgb (238, 238, 238); border:0px; line-height:17.804800033569336px; margin:0px; Vertical-align:baseline; White-space:pre-wrap; " >bridgetoobjectivec () </code><span style= "Background-color:rgb (255, 255, 255); Color:rgb (51, 51, 51); Font-family:arial, ' Liberation Sans ', ' Dejavu Sans ', Sans-serif; font-size:14px; line-height:17.804800033569336px; " . Example:</span>
var i = 1i.bridgetoobjectivec (). ClassName//__nscfnumberprintln ("\ (Object_getclassname (now)");
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Swift Class name Display variable