xcode 私有方法的使用

作者: any_where | 来源:发表于2017-01-11 17:38 被阅读32次

1.打印viewcontroller

po [[UIApplication sharedApplication].keyWindow.rootViewController _printHierarchy]

打印结果

2.打印UIView对象

po [[UIApplication sharedApplication].keyWindow recursiveDescription]

po [self.view recursiveDescription]

打印结果

3.简化的recursiveDescription

po [[UIApplication sharedApplication].keyWindow _autolayoutTrace]

4.打印某个对象所有instance的名字和值

po [self.view _ivarDescription]

5.打印对象的类方法、实例方法、属性

po [self.view _methodDescription]

相关文章

网友评论

    本文标题:xcode 私有方法的使用

    本文链接:https://www.haomeiwen.com/subject/duxlbttx.html