Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 错误应为标识符或';(';_Objective C - Fatal编程技术网

Objective c 错误应为标识符或';(';

Objective c 错误应为标识符或';(';,objective-c,Objective C,我需要帮助找出我为什么会收到这个错误?我是新的编码,并试图解决这个问题 if (pan.state == UIGestureRecognizerStateEnded) { if (self.topLayer.frame.orgin.x <= 160) { [self animateLayerToPoint:0]; } else { [self animatelayerToPoint: VIEW_HIDDEN]; } } if(pa

我需要帮助找出我为什么会收到这个错误?我是新的编码,并试图解决这个问题

if (pan.state == UIGestureRecognizerStateEnded) {
    if (self.topLayer.frame.orgin.x <= 160) {
        [self animateLayerToPoint:0];
    }  else {
        [self animatelayerToPoint: VIEW_HIDDEN];
    }
}
if(pan.state==UIgestureRecognitizerStateEnded){

如果(self.topLayer.frame.orgin.x您有一个输入错误:
orgin
而不是
origin
,这与Xcode无关。哦,好的,谢谢您说我还有一个无关的问题。我如何解决这个问题
if (self.topLayer.frame.orgin.x <= 160)