Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 具有Swift的代理对象_Ios_Swift_Proxy Pattern - Fatal编程技术网

Ios 具有Swift的代理对象

Ios 具有Swift的代理对象,ios,swift,proxy-pattern,Ios,Swift,Proxy Pattern,我正在尝试使用swift实现代理模式,以便为从NSObject继承的自定义对象创建配置对象。这将类似于UIView的UIAppearance。但是我不知道如何进行方法调用转发,我会在objective-c中使用forwardInvocation:method和class来进行这种操作 如果有人面临这样的问题,并且有了解决办法,我将非常感谢听到。 提前谢谢

我正在尝试使用swift实现代理模式,以便为从NSObject继承的自定义对象创建配置对象。这将类似于UIView的UIAppearance。但是我不知道如何进行方法调用转发,我会在objective-c中使用
forwardInvocation:
method和class来进行这种操作

如果有人面临这样的问题,并且有了解决办法,我将非常感谢听到。 提前谢谢