240 发简信
IP属地:福建
  • Swift 和 C 不得不说的故事

    作者:Umberto Raimondi,原文链接,原文日期:2016-04-07译者:shanks;校对:pmst;定稿:CMB 从 Swift 开源到现在,只有短短的几个月...

  • 为什么一样的代码待翻译的是中文就报54001(签名错误),翻译其他语言就不会,百度就是个坑吧!

    OC集成百度翻译

    APPID,APPKEY去百度翻译SDK网站申请需要使用AFN进行网络请求 demo

  • PS修改键盘高度只能通过约束
    // 调整键盘高度
    self.kbHeightConstrain = NSLayoutConstraint(item: inputView!,
    attribute: .height,
    relatedBy: .equal,
    toItem: nil,
    attribute: .notAnAttribute,
    multiplier: 0,
    constant: UIScreen.main.bounds.size.height * 0.4)
    self.kbHeightConstrain.priority = .defaultHigh
    NSLayoutConstraint.activate([kbHeightConstrain])

    我这样请求网络不行哦
    URLSession.shared.dataTask
    2019-06-05 10:20:24.772221+0800 KeyBoard[29911:10649994] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
    2019-06-05 10:20:25.775021+0800 KeyBoard[29911:10649994] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
    2019-06-05 10:20:26.782153+0800 KeyBoard[29911:10649994] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
    2019-06-05 10:20:27.789207+0800 KeyBoard[29911:10649994] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:5 Err:-1 Errno:1 Operation not permitted
    2019-06-05 10:20:27.791667+0800 KeyBoard[29911:10649994] [] nw_resolver_create_dns_service_locked [C1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
    2019-06-05 10:20:27.799195+0800 KeyBoard[29911:10649994] TIC TCP Conn Failed [1:0x2824598c0]: 10:-72000 Err(-65563)
    2019-06-05 10:20:27.809320+0800 KeyBoard[29911:10649994] Task <462D3B00-5275-4321-901E-08247DAEF4F1>.<1> HTTP load failed (error code: -1003 [10:-72000])

    iOS 开发: UIInputViewController 自定义键盘(Custom Keyboard)

    App Extension : UIInputViewController 开发 UIInputViewController 自定义键盘。 注意的几点坑: 1. 自定义键盘无...

  • 如何设置键盘的高度, 约束怎么添加的?我这样测试没用,简书系统维护,看不到图片:sweat:

    mInputView.heightAnchor.constraint(equalToConstant: 500)

    iOS Custom Keyboard 系统自定义键盘

    前言 话说网上有很多关于系统自定义键盘的做法,但是针对系统级别的Custom Keyboard 却很少有人提及,有的也比较片面,说的不够全面。当然这个键盘是系统级别的,如果你...