2014年2月28日

摘要: UISlide可以利用 【uislide setThumbImage: forState】 来设置中间的指针。 阅读全文

posted @ 2014-02-28 16:58 cillyfly 阅读(172) 评论(0) 推荐(0) 编辑

摘要: // 滑动手指的个数numberOfTouchesRequired// 手指滑动的方向 (Up,Down,Left,Right)directionUISwipeGestureRecognizer*swipeGestureRecognizer=[[UISwipeGestureRecognizeralloc]init];[swipeGestureRecognizeraddTarget:selfaction:@selector(gestureRecognizerHandle:)];[swipeGestureRecognizersetNumberOfTouchesRequired:2];[swipeG 阅读全文

posted @ 2014-02-28 16:56 cillyfly 阅读(679) 评论(0) 推荐(0) 编辑

摘要: 1.添加UITextFieldDelegate2.添加此方法-(void)animateTextField:(UITextField*)textField up:(BOOL)up{ constintmovementDistance =80; constfloatmovementDuration =0.3f; intmovement = (up?-movementDistance:movementDistance); [UIViewbeginAnimations:@"anim"context:nil]; [UIViewsetAnimationBeginsFromCurrent 阅读全文

posted @ 2014-02-28 11:54 cillyfly 阅读(241) 评论(0) 推荐(0) 编辑