recursiveDescription - 打印UIView对象
来源:互联网 发布:爱普生mp288清零软件 编辑:程序博客网 时间:2024/06/06 04:24
recursiveDescription - 打印UIView对象
cy# [[UIApp keyWindow] recursiveDescription].toString()`<iConsoleWindow: 0x156b6410; baseClass = UIWindow; frame = (0 0; 320 480); autoresize = W+H; gestureRecognizers = <NSArray: 0x156b6bc0>; layer = <UIWindowLayer: 0x156b6720>> | <UILayoutContainerView: 0x16258d80; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x16258e00>> | | <UITransitionView: 0x16259610; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x16259760>> | | | <UIViewControllerWrapperView: 0x16243bb0; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x1625a670>> | | | | <UILayoutContainerView: 0x1601dd70; frame = (0 0; 320 480); autoresize = W+H; gestureRecognizers = <NSArray: 0x16001650>; layer = <CALayer: 0x16073fe0>> | | | | | <UINavigationTransitionView: 0x16004cc0; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x16004e10>> | | | | | | <UIViewControllerWrapperView: 0x1629d9a0; frame = (0 0; 320 480); layer = <CALayer: 0x1629da10>>... | | | <MMBadgeView: 0x160055a0; baseClass = UIImageView; frame = (203 1; 20 20); opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x16005640>> | | | | <MMUILabel: 0x16004ec0; baseClass = UILabel; frame = (0 0; 0 0); hidden = YES; userInteractionEnabled = NO; tag = 10032; layer = <CALayer: 0x16004f70>> | | | <MMBadgeView: 0x16259810; baseClass = UIImageView; frame = (283 -4; 30 30); hidden = YES; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x162598b0>> | | | | <MMUILabel: 0x1625a180; baseClass = UILabel; frame = (0 0; 0 0); userInteractionEnabled = NO; tag = 10032; layer = <CALayer: 0x1625a230>>`
_printHierarchy - 直接打印所有UIViewController
[[[UIWindow keyWindow] rootViewController] _printHierarchy].toString()
_autolayoutTrace - recursiveDescription的简化版,去掉了UIView的一些描述
cy# [[UIApp keyWindow] _autolayoutTrace].toString()*<iConsoleWindow:0x156b6410>| *<UILayoutContainerView:0x16258d80>| | *<UITransitionView:0x16259610>| | | *<UIViewControllerWrapperView:0x16243bb0>| | | | *<UILayoutContainerView:0x1601dd70>| | | | | *<UINavigationTransitionView:0x16004cc0>| | | | | | *<UIViewControllerWrapperView:0x1629d9a0>...| | | | <MMUILabel:0x1624b250>| | | <MMBadgeView:0x160055a0>| | | | <MMUILabel:0x16004ec0>| | | <MMBadgeView:0x16259810>| | | | <MMUILabel:0x1625a180>`
_ivarDescription - 打印某个对象所有instance的名字和值
cy# [choose(SBApplication)[0] _ivarDescription].toString()`<SBApplication: 0x1766cab0>:in SBApplication:\t_bundleIdentifier (NSString*): @"com.apple.social.remoteui.SocialUIService"\t_displayIdentifier (NSString*): @"com.apple.social.remoteui.SocialUIService"\t_path (NSString*): @"/Applications/SocialUIService.app"\t_bundleVersion (NSString*): @"87"\t_defaultImageNamesByScreenType (NSMutableDictionary*): <__NSDictionaryM: 0x17672a90>\t_defaultImageNamesForOrientation (NSDictionary*): nil...in NSObject:\tisa (Class): SBApplication`
_methodDescription - 打印某个对象的属性,实例和类方法
cy# [choose(SBApplicationController)[0] _methodDescription].toString()`<SBApplicationController: 0x17642990>:in SBApplicationController:\tClass Methods:\t\t+ (void) setClearSystemAppSnapshotsWhenLoaded:(BOOL)arg1; (0x1b2ad1)...\t\t+ (id) sharedInstanceIfExists; (0x1b2b6d)\tInstance Methods:\t\t- (id) setupApplication; (0x1b3e3d)...\t\t- (id) applicationWithDisplayIdentifier:(id)arg1; (0x1b3d0d)in NSObject:\tClass Methods:\t\t+ (bool) cy\$hasImplicitProperties; (0xdb45d80)...\t\t+ (void) finalize; (0x39a49ad1)\tProperties:\t\t@property (nonatomic) BOOL isAccessibilityElement; (@dynamic isAccessibilityElement;)...\t\t@property (nonatomic) BOOL shouldGroupAccessibilityChildren; (@dynamic shouldGroupAccessibilityChildren;)\tInstance Methods:\t\t- (id) cy\$toCYON:(bool)arg1 inSet:(set<void *, std::less<void *>, std::allocator<void *> >*)arg2; (0xdb45b60)...\t\t- (void) finalize; (0x39a49ad5)`
找到目标App的Documents目录路径
cycript -p TargetAppcy# [[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask][0]
获取bundle info
[[NSBundle mainBundle] infoDictionary].toString()
阅读全文
0 0
- recursiveDescription - 打印UIView对象
- lldb po [$view recursiveDescription]; 打印视图层次
- 打印UIView的方法
- iOS递归打印UIView的结构
- 设置UIView的对象不透明
- iOS 复制一个UIView对象
- 处理对象(1)-打印对象和toString方法
- OC处理对象-打印对象和description方法
- 关于 打印对象 和 打印对象.toString()
- iOS中的隐藏的指令 recursiveDescription
- 苹果开发 笔记(61)recursiveDescription 方法
- 苹果开发 笔记(61)recursiveDescription 方法
- 创建UIView对象的两种方法
- iOS 复制UIView所有的对象
- JavaScript如何打印对象
- python打印对象属性
- NSArray打印对象
- 打印object对象
- 软编码Flv 到Mp4 容器(十一) fmp4 moof box详解
- 树形DP POJ3659 好难的一道题
- 深入理解分布式事务
- java.lang.reflect.UndeclaredThrowableException
- ffmpeg编码个参数的设置以及作用
- recursiveDescription - 打印UIView对象
- Qt "hello Qt!"显示
- 深入理解onSaveInstanceState和onRestoreInstanceState
- python的TypeError: unhashable type(list/set/dict)问题
- 特征工程整体框架图
- Ionic2跨平台项目(七)浏览器中使用Native包和插件
- 软编码Flv 到Mp4 容器(十二) fmp4 mdat box详解
- 判断回文数字
- 虚拟机NAT模式网络连接设置ssh