热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Xcode8andswift3

Hi,IcantuseshowCloseButtoninSCLAlertView.SCLAppearance.letappearanc

Hi,

I can't use showCloseButton in SCLAlertView.SCLAppearance.

let appearance = SCLAlertView.SCLAppearance(
kTitleFont: ACFont.fontMediumWithSize(16),
kTextFont: ACFont.fontRegularWithSize(14),
kButtonFont: ACFont.fontRegularWithSize(15),
contentViewColor: UIColor.white,
showCloseButton: false
)

It says "Cannot invoke value" etc...

?

该提问来源于开源项目:vikmeup/SCLAlertView-Swift

func showInfoMessage(info: String, subTitle: String, closeTitle: String,duration: TimeInterval) {

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    let appearance = SCLAlertView.SCLAppearance(

    showCloseButton: false

    )



    let alert = SCLAlertView(appearance: appearance)

    alert.addButton("拨打电话") {



        let telStr = CCUserAccountModel.sharedInstance.account!.serverMobile

        UIApplication.shared.openURL(URL(string: "telprompt://\(telStr ?? "")")!)

    }

    alert.addButton("人工查询", target: self, selector: #selector(personHelp))



    alert.addButton("关闭", backgroundColor: UIColor(hexColor: "c7c7c7"), textColor: UIColor(hexColor: "717171"), showDurationStatus: true) {



    }

    alert.showInfo(info, subTitle: subTitle, duration: duration, colorStyle: 0x1f6aa7, animationStyle: .noAnimation)



}

this is optional,don’t need to unwrap those strings


推荐阅读
author-avatar
乘浪追风2010_210
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有