2012年12月15日

IOS 实现滚动文字

摘要: 当然最好应该使用block的方式,在此只是标记一下。 self.firstButton.backgroundColor = [UIColorgreenColor]; CGRect frame = self.firstButton.frame; frame.origin.x = 320; self.firstButton.frame = frame; [UIViewbeginAnimations:@"testAnimation"context:NULL]; [UIViewsetAnimationDuration:8.8f]; [UIViewsetAnimationCurve: 阅读全文

posted @ 2012-12-15 16:11 小浪鼓 阅读(8205) 评论(0) 推荐(0) 编辑

如果一个按钮被覆盖如何响应?

摘要: 在他们的父类试图重写该函数//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {// // UIButton *firstButton = (UIButton *) [self viewWithTag:1];// CGPoint pointInB = [firstButton convertPoint:point fromView:self];// // if ([firstButton pointInside:pointInB withEvent:event])// return firstButto... 阅读全文

posted @ 2012-12-15 15:22 小浪鼓 阅读(437) 评论(0) 推荐(0) 编辑

导航