我正在尝试找到一个API调用(或一组调用),这将允许应用程序获取在查看朋友的墙时会看到的帖子.REST调用或FQL调用都可以.
我尝试/喂食/发布,将结果与我在朋友的墙上看到的结果进行比较,我得到的结果是不完整的.
我知道这是可能的,因为像Friendly这样的应用程序能够做到这一点.
任何提示?
我试图找出当我使用locationOfTouch时出现错误的原因:inView.最后我用locationOfTouch调用创建了一个新视图,每当我触摸视图时我仍然会得到一个SIGABRT.
除了import语句之外,这里是我视图中的所有代码:
@interface Dummy : UIView <UIGestureRecognizerDelegate> {
UIPanGestureRecognizer *repositionRecognizer;
}
@end
Run Code Online (Sandbox Code Playgroud)
这是impl:
@implementation Dummy
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
repositionRecognizer = [[UIPanGestureRecognizer alloc]
initWithTarget:self
action:@selector(reposition:)];
[repositionRecognizer setDelegate:self];
[self addGestureRecognizer:repositionRecognizer];
self.backgroundColor = [UIColor grayColor];
}
return self;
}
- (void)reposition:(UIGestureRecognizer *) gestureRecognizer {
[gestureRecognizer locationOfTouch:0 inView:self];
//[gestureRecognizer locationInView:self];
}
@end
Run Code Online (Sandbox Code Playgroud)
如果我使用locationInView,它可以正常工作.如果我使用locationOfTouch:inView,程序会在触摸结束后立即中止.
编辑:在控制台上,使用此类,不会显示任何错误消息.IDE使用SIGABRT指向main.m. 点击"继续"会显示"EXC_BAD_INSTRUCTION".http://imageshack.us/photo/my-images/849/consolel.png/上的截图