pclass 0x7f8dfce06c00 查看当前对象的继承关系。
presponder 0x7f8dfce06c00 查看相应链
taplog 查看点击区域的视图的frame
pvc 查看当前视图属于哪个viewController
bmessage [ViewController viewDidLoad]
在类ViewController中的方法 viewDidLoad添加一个断点
border -c red -w 2 0x7fd3b4c09db0
直接给视图添加红色边框,都不用重新run,
控制视图 显示和隐藏
hide 0x7fd3b4c09db0
show 0x7fd3b4c09db0
visualize 0x7fd3b4c09db0 使用预览的模式打开视图、UIImage, CGImageRef格式的图片,甚至view和layer的图片 。
pinternals 0x7fd3b4c09db0
这个命令就是打印一个控件(id)类型的内部结构,非常详细。如下是打印的一个UIButton:
(lldb) pinternals 0x7fd3b4c09db0
(UIButton) $375 = {
UIControl = {
UIView = {
UIResponder = {
NSObject = {
isa = UIButton
}
_hasOverrideClient = false
_hasOverrideHost = false
_hasInputAssistantItem = false
}
_constraintsExceptingSubviewAutoresizingConstraints = 0x00006080000570a0 @"0 elements"
_cachedTraitCollection = 0x00006080000d2910
_layer = 0x0000608000034680
_layerRetained = nil
_gestureInfo = nil
_gestureRecognizers = nil
_window = 0x00007fd3b4c090d0
_subviewCache = 0x0000608000058900 @"1 element"
_templateLayoutView = nil
_charge = 0
_tag = 0
_viewDelegate = nil
_backgroundColorSystemColorName = nil
_countOfMotionEffectsInSubtree = 0
_countOfTraitChangeRespondersInDirectSubtree = 2
_cachedScreenScale = 2
_layoutSubviewsCount = 0
_retainCount = 2
_tintAdjustmentDimmingCount = 0
_shouldArchiveUIAppearanceTags = false
_wantsDeepColorDrawing = true
_interactionTintColor = nil
_layoutMarginsGuide = nil
_minXVariable = 0x00006000002271a0
_minYVariable = 0x0000600000228e60
_boundsWidthVariable = 0x0000600000227960
_boundsHeightVariable = 0x0000600000227860
_layoutEngine = 0x000060800018d410
_layoutDebuggingIdentifier = nil
_stashedLayoutVariableObservations = 0x00007fd3b4d075d0
_internalConstraints = nil
_continuousCornerRadius = 0
_countOfFocusedAncestorTrackingViewsInSubtree = 0
_semanticContentAttribute = 0
_contentSizeNotificationToken = nil
_readableContentGuide = nil
__preferedContentsFormat = 0
_previewingSegueTemplateStorage = nil
__presentationControllerToNotifyOnLayoutSubviews = nil
}
_targetActions = nil
_downTime = 0
}
_externalFlatEdge = 0
_contentLookup = 0x0000608000271100
_backgroundView = nil
_floatingContentView = nil
_contentBackdropView = nil
_imageView = nil
_titleView = 0x00007fd3b4c0dc80
_initialized = false
_lastDrawingControlState = 0
_selectGestureRecognizer = nil
_effectiveContentView = 0x00007fd3b4c09db0
_maskAnimationView = nil
_selectionView = nil
_lazyTitleViewFont = nil
_contentConstraints = nil
}
(lldb)