小编Cha*_*ima的帖子

带有NavigationBar LargeTitle和SearchController的iOS 11 UIRefreshControl消失了

我有一个带有largeTitle和searchcontroller的navigationBar,我的tableView有一个refreshcontrol.

当我拉动刷新时,refreshcontrol的activityIndi​​cator消失,但de刷新过程继续,即使当进程完成并且我调用UIRefreshControll的.endRefreshing()时,navigationBar也没有恢复到正常大小.

在此输入图像描述

有人有同样的问题吗?

uinavigationbar uirefreshcontrol swift uisearchcontroller ios11

15
推荐指数
3
解决办法
3702
查看次数

如何在使用Callkit接受调用后保留本机UI

我正在使用Callkit和Linphone开发iOS voip应用程序.当我收到来电时,系统显示本机电话用户界面,用户接受或拒绝接听电话,当用户点击接听按钮时,呼叫开始但电话用户界面消失.

如何在用户接听电话后保留原生手机用户界面,例如whatsapp吗?

此外,如何在开始拨出电话时显示本机电话用户界面?

这是我的providerDelegate代码:

func reportIncomingCall(uuid: UUID, handle: String, hasVideo: Bool = false, completion: ((NSError?) -> Void)? = nil) {
    // Construct a CXCallUpdate describing the incoming call, including     the caller.
    let update = CXCallUpdate()
    update.remoteHandle = CXHandle(type: .generic, value: handle)
    update.hasVideo = hasVideo

    // Report the incoming call to the system
    provider.reportNewIncomingCall(with: uuid, update: update) { error in
        /*
         Only add incoming call to the app's list of calls if the call was allowed (i.e. there was no …
Run Code Online (Sandbox Code Playgroud)

voip ios linphone swift callkit

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

有什么方法可以快速将 NSAttributedString 转换为 HTML 吗?

我想将 NSAttributedString 转换为 HTML 字符串。我一直在寻找如何解决它,但还没有结果。

知道我该怎么做吗?

html string nsattributedstring ios swift

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