美文网首页
Facebean开发技术支持

Facebean开发技术支持

作者: ACRN | 来源:发表于2019-03-17 23:04 被阅读0次

技术开发:胡凯凡

邮箱:975293830@qq.com    jsmnhkh@gmail.com    

手机号码:13225225982


swift 改变UIlabel的方法

extension UILabel{

    /**  改变字间距  */

    funcchangeWordSpace(space:CGFloat) {

        ifself.text==nil||self.text==""{

            return

        }

        lettext =self.text

        letattributedString =NSMutableAttributedString.init(string: text!, attributes: [NSAttributedStringKey.kern:space])

        letparagraphStyle =NSMutableParagraphStyle()

        attributedString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: .init(location:0, length: (text?.count)!))

        self.attributedText= attributedString

        self.sizeToFit()

    }

    /**  改变字间距和行间距  */

    funcchangeSpace(lineSpace:CGFloat, wordSpace:CGFloat) {

        ifself.text==nil||self.text==""{

            return

        }

        lettext =self.text

        letattributedString =NSMutableAttributedString.init(string: text!, attributes: [NSAttributedStringKey.kern:wordSpace])

        letparagraphStyle =NSMutableParagraphStyle()

        paragraphStyle.lineSpacing= lineSpace

        attributedString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: .init(location:0, length: (text?.count)!))

        self.attributedText= attributedString

        self.sizeToFit()

    }

    /**  改变行间距  */

    funcchangeLineSpace(space:CGFloat) {

        ifself.text==nil||self.text==""{

            return

        }

        lettext =self.text

        letattributedString =NSMutableAttributedString.init(string: text!)

        letparagraphStyle =NSMutableParagraphStyle()

        paragraphStyle.lineSpacing= space

        attributedString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: .init(location:0, length: (text?.count)!))

        self.attributedText= attributedString

        self.sizeToFit()

    }

}


swift将UIImage保存到相册

extension UIImage {

    funcsaveImage() {

        PHPhotoLibrary.shared().performChanges({

            PHAssetChangeRequest.creationRequestForAsset(from: self)

        }) { (isSuccess, error)in

            print("\(isSuccess)----\(String(describing: error))")

            ifisSuccess {

                //MessateAlert.Use(titleStr: "保存成功")

                print("保存成功")

            }else{

                print("error---->\(String(describing: error))")

                //MessateAlert.Use(titleStr: "系统问题,保存失败")

                print("系统问题,保存失败")

            }

        }

    }

}


技术开发:胡凯凡

邮箱:975293830@qq.com    jsmnhkh@gmail.com    

手机号码:13225225982

相关文章

  • Facebean开发技术支持

    技术开发:胡凯凡 邮箱:975293830@qq.com jsmnhkh@gmail.com 手机号码:132...

  • 祝童开发平台技术支持

    祝童开发平台技术支持! 欢迎访问祝童开发平台!我们全力为您提供技术支持服务,解决您们的问题。有问题可以留言。 联系...

  • 学习汉字App技术支持

    学习汉字App技术支持 1.内容文字支持,学习使用了若干年汉字的中国理学学士 2.开发技术支持,从事iOS开发4年...

  • “生活助手”技术支持

    “生活助手”App技术支持信息: 开发者电话:15005651591 开发者联系方式:zowang626582@1...

  • 苹果开发者官方资源网址(标注)

    开发者软件技术支持中心:4006701855(一帮美国那边的人为您竭诚服务) 打过几次电话,该技术支持中心噱头很大...

  • “生活助手”技术支持

    “生活助手”App技术支持信息: 开发者联系:15005651591 zowang626582@163.com

  • Facebean隐私政策网址(URL)

    本软件尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,本软件会按照本隐私权政策的规定...

  • 关于AppStore审核因为技术支持网址被拒绝的解决方案

    原因是苹果更新了审核条款,对于技术支持网址作了要求,需要让用户在技术支持网址上可以用简单的方式联系到开发者。所以我...

  • 联系通达门禁 2019-07-18

    iOS 通达门禁App为本人代为开发,如有技术支持问题请联系我:QQ:842094463 手机:189960384...

  • PLA 1.2 AppStore被拒经历

    金融类APP 公司类型的开发者账号上传 开发账号申请邮箱是公司邮箱 技术支持网址(URL) APP名称是否跟公司业...

网友评论

      本文标题:Facebean开发技术支持

      本文链接:https://www.haomeiwen.com/subject/siopmqtx.html