摘要: - (IBAction)up { // 1.拿到按钮, UIButton *head = (UIButton *) [self.view viewWithTag:10]; // 2.通过tranform让头像向上走 // CGFloat tx:表示水平方向的移动范围 // CGFloat ty:垂直 阅读全文
posted @ 2016-07-05 15:01 zhen_zhen 阅读(586) 评论(0) 推荐(0) 编辑
摘要: uibutton *btn =(uibutton *)【self.view viewWithTag:10】; nsstringFromRect(frame) 阅读全文
posted @ 2016-07-05 15:00 zhen_zhen 阅读(174) 评论(0) 推荐(0) 编辑
摘要: // self.head.frame.origin.y = self.head.frame.origin.y - 10; // 不能直接访问对象的 结构体属性 的成员变量\ // 能够直接访问对象的结构体属性 // self.head.frame // 1.取出对象的结构体属性frame,赋值给临时 阅读全文
posted @ 2016-07-05 14:52 zhen_zhen 阅读(161) 评论(0) 推荐(0) 编辑