0

Apple のイベント処理ガイド ( http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/はじめに/はじめに.html )

私のコードは次のとおりです。

- (void)cacheBeginPointForTouches:(NSSet *)touches {
if ([touches count] > 0) {
    for (UITouch *touch in touches) {
        CGPoint *point = (CGPoint *)CFMutableDictionaryGetValue(_TouchesDict, touch);
        if (point == NULL) {
            point = (CGPoint *)malloc(sizeof(CGPoint));
            CFDictionarySetValue(_TouchesDict, touch, point);
        }
        *point = [touch locationInView:_view.superview];
    }
}
}

ただし、次のようなコンパイラ エラーが発生し続けます。

Undefined symbols for architecture i386:
  "_CFMutableDictionaryGetValue", referenced from:
  -[ViewController cacheBeginPointForTouches:] in ViewController.o
  "_OBJC_IVAR_$_UIViewController._view", referenced from:
  -[ViewController cacheBeginPointForTouches:] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

私が間違っているかもしれないことについて何か提案はありますか?

ありがとう!

4

1 に答える 1