解决方案 »
- 如何让控件uitextfield输入汉字,新手
- 使用Reachability判断网络
- 对于阻塞的socket编程,除了超时以外有没有办法结束其阻塞
- ios上 做流媒体开发 选什么流媒体服务器
- iphone 关于BMP位图画法
- IOS
- XCODE运行程序的时候出现Thread 1: signal SIGABRT求解决方法
- AVAudioPlayer 不能播放音频
- 3DTouch ShortCut 首次无法使用,求解决。
- Flutter Column Row child children Container Padding Center 傻傻分不清楚?
- 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)];
}