阅读背景:

是否可以通过泛型类传递属性?

来源:互联网 

What I want to achieve is to have a "transparent" unifying class that can contain one item of a number of classes that fulfil a number of criteria (one of them is inheritance from UIView). What i mean by transparent is that if i ask this generic class for a property that it does not contain (directly) it checks if the item inside it contains that property automatically. I'm not sure how to describe this any better without an example, so here's what I'm looking to achieve.What I want to achieve is to have a "transparen




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: