• JSPatch中的OC高级语法


    1)多线程相关

    dispatch_after

    dispatch_async

    dispatch_sync

    dispatch_get_main_queue

    dispatch_get_global_queue

    dispatch_time

    2)__bridge,涉及到CF与OC的转换

    objc_getAssociatedObject

    objc_setAssociatedObject

    3)

    objc_allocateClassPair

    objc_registerClassPair

    4)

    class_copyMethodList

    5)Method相关

    objc_method_description以及这个对象的name和type属性

    desc->name

    desc->type

    method_getDescription

    6)反射

    NSStringFromClass

    NSStringFromSelector

    NSSelectorFromString

    7)class_addMethod

    8)

    NSInvocation

             selector和methodSignature属性

    NSMethodSignature

             NumberOfArgument属性

             MethodReturnType方法

             GetArgumentTypeAtIndex方法

    9)object_getClass

    10)MethodSignature的两个方法

             methodSignatureForSelector

             instanceMethodSignatureForSelector

    11)NSInvocation

             invocationWithMethodSignature静态方法

             invoke方法

             各种set方法

    12)meta class:

    class_isMetaClass

    objc_getMetaClass

    13)@encode

    14)C的strcmp比较函数

    15)CGRect、CGPoint、CGSize、NSRange

    16)

    class_getClassMethod

    class_getInstanceMethod

    method_getTypeEncoding

    17)IMP

    class_responseToSelector

    class_getMethodImplementation

    class_replaceMethod

    18)method_get Implementation

    19)__unsafe_unretained

    20)@()

  • 相关阅读:
    SVN 常用keywords 记录
    HTML5新特性介绍
    php文件上传错误代码
    MySQL的 Grant命令权限分配
    前端开发工具整理
    Java多线程编程经验谈
    一套密码强度判断方案
    傲游浏览器下Flash和Js交互问题
    在xml中使用&和字符
    ibatis和myibatis
  • 原文地址:https://www.cnblogs.com/Jax/p/5110942.html
Copyright © 2020-2023  润新知