我有一个应用程序,其中我正在解码来自ip camera的视频帧,但是生成bad_access时avcodec_decode_video2(m_pCodecCtx, m_pFrame, &consumed_bytes, &avpkt);出现的方法avcodec.h,我无法弄清楚出了什么问题.
这个应用程序与旧的库FFMpeg工作正常,但通过苹果政策,为了发布应用程序支持arm64,所以我更新了我的库以支持arm64,之后发生了这个问题.
这是截图
虽然bad_access应用程序正在生成以下日志:
[h264 @ 0x1071400] sps_id 12 out of range
[h264 @ 0x1071400] pps_id 417 out of range
[h264 @ 0x1071400] sps_id 3 out of range
[h264 @ 0x1071400] sps_id 32 out of range
[h264 @ 0x1071400] sps_id 6 out of range
[h264 @ 0x1071400] sps_id 0 out of range
[h264 @ 0x1071400] sps_id 32 out of range
[h264 @ 0x1071400] sps_id 1 out of range
[h264 @ 0x1071400] sps_id …Run Code Online (Sandbox Code Playgroud) 我想在pageviewcontroller.m文件中实现-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch 手势委托,但我不能得到任何手势:
NSArray *temp = self.gestureRecognizers;
NSLog(@"count %i",temp.count); // this logs count 0
NSArray *temp = self.view.gestureRecognizers;
NSLog(@"count %i",temp.count); // this also logs count 0
for (UIGestureRecognizer *gR in temp) {
gR.delegate = self;
}
Run Code Online (Sandbox Code Playgroud)
在上面的代码中,self指向pageviewcontroller.
因此我无法将委托分配给pageviewcontroller手势.
编辑部分:
好吧,我得到了它,因为uipageviewscroll样式,我没有得到任何手势对象.
但我有一个问题,我需要禁用pageviewcontroller 平移手势,需要从两个按钮滚动pageviewcontroller,如果用户尝试平移,它的起点是在我的uibuttons框架内,然后pageviewcontroller应该滚动否则不滚动.
我正在使用transitionStyle UIPageViewControllerTransitionStyleScroll.
任何解决方案...提前谢谢
我的iPhone应用程序崩溃在客户端设备上的ios 7.0 iphone 5s我无法弄清楚它有什么问题,我正在使用crashlytics进行崩溃报告.Crashlytics报告由于线程#9 DataDetectorsCore processToken上的错误访问而崩溃
Crashed: NSOperationQueue 0x17023e120
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000620a51e24
0 DataDetectorsCore processToken + 400
1 DataDetectorsCore _DDScannerHandleState + 344
2 DataDetectorsCore _DDScannerHandleState + 344
3 DataDetectorsCore _DDScannerHandleState + 400
4 DataDetectorsCore _DDScannerHandleState + 400
5 DataDetectorsCore _DDScannerHandleState + 400
6 DataDetectorsCore _DDScannerHandleState + 400
7 DataDetectorsCore DDScannerScanQuery + 456
8 DataDetectorsUI -[DDOperation main] + 240
9 Foundation -[__NSOperationInternal _start:] + 644
10 Foundation __NSOQSchedule_f + 76
11 libdispatch.dylib _dispatch_client_callout + 16
12 libdispatch.dylib _dispatch_async_redirect_invoke + 152 …Run Code Online (Sandbox Code Playgroud) 我的应用程序仅使用 google 登录进行注册和登录,我提供了一个演示 gmail 帐户,该帐户仅用于 Apple 审核目的。但是,当苹果的审核员尝试使用演示帐户登录时,谷歌将此登录标记为可疑并阻止登录,因为它是在不同的地区使用的,因此苹果审核员拒绝了我的申请。
有什么方法可以让 Gmail 帐户在 Apple 网站上使用而不被 Google 屏蔽吗?