我正在使用动态表视图。如先前答复中所建议
How to know the UITableview row number)我尝试使用CGPoint。

CGPoint hitPoint = [sender convertPoint:CGPointZero toView:self.tableView];
NSIndexPath *hitIndex = [self.tableView indexPathForRowAtPoint:hitPoint];


我收到调试器错误

Undefined symbols for architecture i386:
  "_CGPointZero", referenced from:
      -[MessageTableViewController btnCall:] in MessageTableViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


不支持i386或我需要以某种方式设置GCPointZero是什么意思?

谢谢!

最佳答案

您必须链接CoreGraphics framework

关于ios - CoreGraphics确定模拟器中的单击位置-体系结构i386的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14965675/

10-12 21:18