iOS之键路径keyPath

什么是键路径(KeyPath):是一个由用点作分隔符的键组成的字符串,用于指定一个连接在一起的对象性质序列。 用法:对象.属性,如 CAKeyframeAnimation *kfa = [CAKeyframeAnimationanimationWithKeyPath:@"transform.translation.x"]; 作用:常见于KVO编程,可以通过键路径访问到属性的属性。 KeyPath在
相关文章
相关标签/搜索