草庐IT

viewConnection

全部标签

ios - Objective-C 创建一个 ViewController 的实例

我想创建一个ViewController类的实例:ViewController*viewConnection=[[ViewControlleralloc]init];self.image.center=CGPointMake(self.image.center.x+1,self.image.center.y);if(CGRectIntersectsRect(self.image.frame,viewConnection.otherImage.frame)){[self.movementTimerinvalidate];}`当类中的图像命中ViewController中的图像时,它不会进