小编Pab*_*nez的帖子

Safari服务崩溃[SFAuthenticationViewController dismissViewControllerAnimated:completion:]

我经常在我的应用程序中崩溃.iOS系统的崩溃似乎只发生在最新的iOS 11中.

这是崩溃

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x18439d7ec objc_object::release() + 8
1  SafariServices                 0x1995d471c __75-[SFAuthenticationViewController dismissViewControllerAnimated:completion:]_block_invoke + 32
2  UIKit                          0x18e5bf030 -[UIPresentationController transitionDidFinish:] + 1320
3  UIKit                          0x18e79e760 -[_UICurrentContextPresentationController transitionDidFinish:] + 44
4  UIKit                          0x18e5c2a20 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 188
5  UIKit                          0x18e38e9d8 -[_UIViewControllerTransitionContext completeTransition:] + 116
6  UIKit                          0x18e38e7c8 -[UITransitionView notifyDidCompleteTransition:] + 252
7  UIKit                          0x18e38e260 -[UITransitionView _didCompleteTransition:] + 1128
8  UIKit                          0x18e38dde4 -[UITransitionView _transitionDidStop:finished:] + 120
9  UIKit                          0x18e2b370c -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312
10 UIKit                          0x18e2b3418 -[UIViewAnimationState animationDidStop:finished:] + …
Run Code Online (Sandbox Code Playgroud)

crash ios ios11

16
推荐指数
1
解决办法
1845
查看次数

WebView和GridView进入ScrollView,View太大而无法适应绘图缓存

我有布局内存问题.当我有一个大型webview时它没有显示任何内容,并且logcat显示"View太大而无法适应绘图缓存".

布局是:

<ScrollView
    android:id="@+id/scrollNoticia"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/ficha_curva" 
    android:layout_below="@+id/linea"
    android:scrollbars="none" 
    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="12dp"

         >

        <WebView
            android:id="@+id/webViewNoticia"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scrollbars="none"

             />

        <GridView
            android:id="@+id/gridGaleria"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/webViewNoticia"
            android:horizontalSpacing="4dp"
            android:verticalSpacing="4dp"
            android:numColumns="4" >
        </GridView>
    </RelativeLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)

android caching android-view android-memory

6
推荐指数
1
解决办法
1938
查看次数

RTCI420Frame 对象到图像或纹理

我正在开发 iOS 的 WebRTC 应用程序。我的目标是从 WebRTC 对象录制视频。

我有委托 RTCVideoRenderer 为我提供了此方法。

-(void)renderFrame:(RTCI420Frame *)frame{
}
Run Code Online (Sandbox Code Playgroud)

我的问题是:如何将对象 RTCI420Frame 转换为有用的对象以显示图像或保存到磁盘。

objective-c ios webrtc

5
推荐指数
1
解决办法
758
查看次数

没有状态栏的NavigationBar与iOS11中的safearea重叠

iOS11中有一个iPhoneX模拟器有问题.

我有一个没有状态栏的viewcontroller.要做到这一点,我添加:

- (BOOL)prefersStatusBarHidden {
    return YES;
}
Run Code Online (Sandbox Code Playgroud)

到目前为止它还不错,但导航栏与iPhoneX中的safearea重叠.

在此输入图像描述

我怎样才能解决这个问题?

iphone ios ios11 safearealayoutguide

1
推荐指数
1
解决办法
729
查看次数