實(shí)現(xiàn)方式很簡(jiǎn)單炸站,先利用runtime給分類里的block屬性添加set和get方法捂掰。 然后在觸發(fā)的方法里回調(diào)block。 最后實(shí)現(xiàn)的效果 github地址