解决方案 »

  1.   

    - (void)viewDidLoad
    {
        [super viewDidLoad];
        // Do any additional setup after loading the view from its nib.
        
        
        [yourImageView setImage:[[UIImage imageNamed:@"xxx.png"]stretchableImageWithLeftCapWidth:0 topCapHeight:10]];
    }-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    {
        CGPoint position=[[touches anyObject]locationInView:self.view];
        
        CGFloat imageHeight=position.y-20;
        
        
        [yourImageView setFrame:CGRectMake(yourImageView.frame.origin.x, yourImageView.frame.origin.y, yourImageView.frame.size.width, imageHeight)];
    }
      

  2.   

    谢谢了 现在才结贴 快一年了 呵呵 已经不做ios开发了