SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

addTextField creating issue during device testing (works smoothly on simulator)

Open UIALert opened this issue 8 years ago • 0 comments

let alert = SCLAlertView(appearance: AppContext.appearanceTripCreate) let txt = alert.addTextField("Enter trip name") alert.addButton("Done") { if txt.text != nil { } else { SCLAlertView().showInfo("Please enter trip name", subTitle: "")

        }
    }
    alert.showEdit("Create Trip", subTitle: "",   colorStyle: AppContext.redColor, colorTextButton: 0xFFFFFF)

SCLAlertView.swift This line throws errror viewText.textContainerInset = UIEdgeInsets.zero viewText.textContainer.lineFragmentPadding = 0;

UIALert avatar Jul 11 '17 04:07 UIALert