2
我在我的应用程序中有一个自定义的UIScrollView。当用户触摸滚动视图时,我希望它放大以填充整个屏幕。动态更改UIScrollView的框架?
我已经使用这个代码试过了,但是什么也没有发生:
-(void) touchesBegan: (NSSet *) touches withEvent:(UIEvent *) event {
NSLog(@"Touch Detected");
self.frame = CGRectMake(0, 0, 768, 1024);
}
有没有办法来动态改变视图的大小?也有可能以某种方式动画变化的大小?
预先感谢您。
完美答案 - 谢谢。 – GuybrushThreepwood 2011-12-22 18:02:16