解决方案 »
- 微信开发,无法回调自己的应用,问题出在注册应用的信息不完整?
- coverflow的问题.
- IPhone, OPhone到底是怎么回事啊?
- Student * stu = [[Student alloc]init]; //用类方法初始化
- 刚学object-c 有点混乱 求指点
- 如何将以下的C代码改为Objective-c
- UITableViewCell 中添加UIView
- 求助:iso程序真机调试时会自动在UIButton上添加下划线
- 求解:十万火急,UIImagePickerController 拍照的问题
- IOS开发真机调试拔出数据线应用异常问题
- ios客户端与服务器间的数据交互
- 状态栏有时没有旋转过来
{
[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)];
}