美文网首页
swift runtime

swift runtime

作者: Mr_Coii | 来源:发表于2019-05-24 14:18 被阅读0次
  • 获取属性名
var count:UInt32 = 0
let ivarlist = class_copyIvarList(NSClassFromString("UITabBarButton")!, &count)
for index in 0..<numericCast(count) {
    let ivar = ivarlist![index]
    let ivarStr = String.init(utf8String: ivar_getName(ivar)!)
    print("\(ivarStr!)")
}
_hitRect
_info
_vibrancyEffectView
_label
_badge
_selectedIndicator
_selected
_infoInsets
_infoLandscapeInsets
_selectedInfoOffset
_infoOffset
_customSelectedIndicatorImage
_labelOffset
_buttonTintColorsForState
_contentTintColorsForState
_defaultUnselectedLabelTintColor
_badgeColor
_badgeTextAttributesForState
_horizontalLayout
_highContrastFocusIndicator
_showsHighlightedState
_centerAllContents
_appearanceGuideClass
_tabBar

相关文章

网友评论

      本文标题:swift runtime

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