在xCode中,直接用代码输出对象的内存地址

self.window = [[UIWindowalloc] initWithFrame:[UIScreenmainScreen].bounds];spa  NSLog(@"SW - %0x",self.window);it 也可使用C++语法打印:class printf("SW - %0x",self.window);语法
相关文章
相关标签/搜索